mirror of
https://github.com/cake-tech/cake_wallet.git
synced 2024-12-22 19:49:22 +00:00
update warnings, pt.1
This commit is contained in:
parent
24135c5930
commit
f4465db453
2 changed files with 5 additions and 6 deletions
|
@ -45,7 +45,7 @@ class MainActions {
|
|||
}
|
||||
|
||||
if (viewModel.isTorEnabled) {
|
||||
_showErrorDialog(context, S.of(context).warning, S.of(context).tor_enabled_warning);
|
||||
await _showErrorDialog(context, S.of(context).warning, S.of(context).tor_enabled_warning);
|
||||
}
|
||||
|
||||
final defaultBuyProvider = viewModel.defaultBuyProvider;
|
||||
|
@ -76,10 +76,6 @@ class MainActions {
|
|||
if (!viewModel.isEnabledExchangeAction) {
|
||||
return;
|
||||
}
|
||||
|
||||
if (viewModel.isTorEnabled) {
|
||||
_showErrorDialog(context, S.of(context).warning, S.of(context).tor_enabled_warning);
|
||||
}
|
||||
|
||||
await Navigator.of(context).pushNamed(Routes.exchange);
|
||||
},
|
||||
|
@ -109,7 +105,7 @@ class MainActions {
|
|||
}
|
||||
|
||||
if (viewModel.isTorEnabled) {
|
||||
_showErrorDialog(context, S.of(context).warning, S.of(context).tor_enabled_warning);
|
||||
await _showErrorDialog(context, S.of(context).warning, S.of(context).tor_enabled_warning);
|
||||
}
|
||||
|
||||
final defaultSellProvider = viewModel.defaultSellProvider;
|
||||
|
|
|
@ -61,6 +61,9 @@ class PreferencesKey {
|
|||
static const lookupsUnstoppableDomains = 'looks_up_mastodon';
|
||||
static const lookupsOpenAlias = 'looks_up_mastodon';
|
||||
static const lookupsENS = 'looks_up_ens';
|
||||
static const shownTorSellWarning = 'shown_tor_sell_warning';
|
||||
static const shownTorBuyWarning = 'shown_tor_buy_warning';
|
||||
|
||||
|
||||
static String moneroWalletUpdateV1Key(String name) =>
|
||||
'${PreferencesKey.moneroWalletPasswordUpdateV1Base}_${name}';
|
||||
|
|
Loading…
Reference in a new issue