update warnings, pt.1

This commit is contained in:
Matthew Fosse 2024-03-07 07:58:25 -08:00
parent 24135c5930
commit f4465db453
2 changed files with 5 additions and 6 deletions

View file

@ -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;

View file

@ -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}';