Added warning on receive screen for outdated electrum wallets.

This commit is contained in:
M
2021-06-04 13:30:59 +03:00
parent 6db756062a
commit b2ece79334
19 changed files with 98 additions and 16 deletions
+6
View File
@@ -147,6 +147,12 @@ abstract class SettingsStoreBase with Store {
bool isBitcoinBuyEnabled;
bool get shouldShowReceiveWarning =>
_sharedPreferences.getBool(PreferencesKey.shouldShowReceiveWarning) ?? true;
Future<void> setShouldShowReceiveWarning(bool value) async =>
_sharedPreferences.setBool(PreferencesKey.shouldShowReceiveWarning, value);
static Future<SettingsStore> load(
{@required Box<Node> nodeSource,
@required bool isBitcoinBuyEnabled,