File tree 2 files changed +7
-2
lines changed
2 files changed +7
-2
lines changed Original file line number Diff line number Diff line change 11
11
- name : Check for http package usage
12
12
if : github.event_name == 'pull_request'
13
13
run : |
14
- GIT_GREP_OUT="$(git grep package:http | (grep .dart: || test $? = 1) || true)"
14
+ GIT_GREP_OUT="$(git grep package:http | (grep .dart: || test $? = 1) | (grep -v proxy_wrapper.dart || test $? = 1) | | true)"
15
15
[[ "x$GIT_GREP_OUT" == "x" ]] && exit 0
16
16
echo "$GIT_GREP_OUT"
17
17
echo "There are .dart files which use http imports"
Original file line number Diff line number Diff line change @@ -4,6 +4,7 @@ import 'package:cake_wallet/core/key_service.dart';
4
4
import 'package:cake_wallet/core/wallet_loading_service.dart' ;
5
5
import 'package:cake_wallet/di.dart' ;
6
6
import 'package:cake_wallet/store/settings_store.dart' ;
7
+ import 'package:cake_wallet/utils/tor.dart' ;
7
8
import 'package:cake_wallet/view_model/wallet_list/wallet_list_item.dart' ;
8
9
import 'package:cake_wallet/view_model/wallet_list/wallet_list_view_model.dart' ;
9
10
import 'package:cw_core/sync_status.dart' ;
@@ -13,6 +14,11 @@ import 'package:flutter/foundation.dart';
13
14
14
15
class BackgroundSync {
15
16
Future <void > sync () async {
17
+ final settingsStore = getIt.get <SettingsStore >();
18
+ if (settingsStore.currentBuiltinTor) {
19
+ printV ("Starting Tor" );
20
+ await ensureTorStarted (context: null );
21
+ }
16
22
printV ("Background sync started" );
17
23
await _syncMonero ();
18
24
printV ("Background sync completed" );
@@ -23,7 +29,6 @@ class BackgroundSync {
23
29
final walletListViewModel = getIt.get <WalletListViewModel >();
24
30
final settingsStore = getIt.get <SettingsStore >();
25
31
26
-
27
32
final List <WalletListItem > moneroWallets = walletListViewModel.wallets
28
33
.where ((element) => ! element.isHardware)
29
34
.where ((element) => [WalletType .monero].contains (element.type))
You can’t perform that action at this time.
0 commit comments