mirror of
https://github.com/cypherstack/stack_wallet.git
synced 2024-09-29 09:51:09 +00:00
disable checking trade history for updates in incognito mode
This commit is contained in:
parent
8664699484
commit
e1e9cb7126
2 changed files with 19 additions and 15 deletions
|
@ -79,6 +79,7 @@ class _TradeDetailsViewState extends ConsumerState<TradeDetailsView> {
|
|||
transactionIfSentFromStack = widget.transactionIfSentFromStack;
|
||||
walletId = widget.walletId;
|
||||
|
||||
if (ref.read(prefsChangeNotifierProvider).externalCalls) {
|
||||
WidgetsBinding.instance.addPostFrameCallback((timeStamp) async {
|
||||
final trade = ref
|
||||
.read(tradesServiceProvider)
|
||||
|
@ -96,6 +97,7 @@ class _TradeDetailsViewState extends ConsumerState<TradeDetailsView> {
|
|||
}
|
||||
}
|
||||
});
|
||||
}
|
||||
super.initState();
|
||||
}
|
||||
|
||||
|
|
|
@ -84,7 +84,9 @@ class NotificationsService extends ChangeNotifier {
|
|||
_timer = Timer.periodic(notificationRefreshInterval, (_) {
|
||||
Logging.instance
|
||||
.log("Periodic notifications update check", level: LogLevel.Info);
|
||||
if (prefs.externalCalls) {
|
||||
_checkTrades();
|
||||
}
|
||||
_checkTransactions();
|
||||
});
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue