Skip to content

Commit cddfa48

Browse files
committed
add isDesktop check to store() delay logic
import util
1 parent b770a24 commit cddfa48

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

cw_monero/lib/api/wallet.dart

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ import 'package:cw_monero/api/types.dart';
1111
import 'package:ffi/ffi.dart';
1212
import 'package:ffi/ffi.dart' as pkgffi;
1313
import 'package:flutter/foundation.dart';
14+
import 'package:stackwallet/utilities/util.dart';
1415

1516
int _boolToInt(bool value) => value ? 1 : 0;
1617

@@ -368,7 +369,7 @@ bool priorityInQueue = false;
368369

369370
Future<bool> store({bool prioritySave = false}) async {
370371
// Delay saves
371-
if (Platform.isAndroid) {
372+
if (Platform.isAndroid || Util.isDesktop) {
372373
if (priorityInQueue) {
373374
return false;
374375
}

0 commit comments

Comments
 (0)