Skip to content

Commit

Permalink
add isDesktop check to store() delay logic
Browse files Browse the repository at this point in the history
import util
  • Loading branch information
sneurlax committed Mar 27, 2023
1 parent b770a24 commit cddfa48
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion cw_monero/lib/api/wallet.dart
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ import 'package:cw_monero/api/types.dart';
import 'package:ffi/ffi.dart';
import 'package:ffi/ffi.dart' as pkgffi;
import 'package:flutter/foundation.dart';
import 'package:stackwallet/utilities/util.dart';

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

Expand Down Expand Up @@ -368,7 +369,7 @@ bool priorityInQueue = false;

Future<bool> store({bool prioritySave = false}) async {
// Delay saves
if (Platform.isAndroid) {
if (Platform.isAndroid || Util.isDesktop) {
if (priorityInQueue) {
return false;
}
Expand Down

0 comments on commit cddfa48

Please sign in to comment.