mirror of
https://github.com/cake-tech/cake_wallet.git
synced 2024-12-23 12:09:43 +00:00
CAKE-306 | fixed settings_store.dart and di.dart
This commit is contained in:
parent
90d53c9f6e
commit
ee6b8767d6
2 changed files with 6 additions and 6 deletions
|
@ -155,7 +155,7 @@ Future setup(
|
||||||
(secrets.wyreApiKey?.isNotEmpty ?? false) &&
|
(secrets.wyreApiKey?.isNotEmpty ?? false) &&
|
||||||
(secrets.wyreAccountId?.isNotEmpty ?? false);
|
(secrets.wyreAccountId?.isNotEmpty ?? false);
|
||||||
|
|
||||||
var isMoonPayEnabled = false;
|
/*var isMoonPayEnabled = false;
|
||||||
try {
|
try {
|
||||||
final locale = await Devicelocale.currentLocale;
|
final locale = await Devicelocale.currentLocale;
|
||||||
final deviceCountryCode = locale.split('_').last;
|
final deviceCountryCode = locale.split('_').last;
|
||||||
|
@ -163,11 +163,11 @@ Future setup(
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
isMoonPayEnabled = false;
|
isMoonPayEnabled = false;
|
||||||
print(e.toString());
|
print(e.toString());
|
||||||
}
|
}*/
|
||||||
|
|
||||||
final settingsStore = await SettingsStoreBase.load(
|
final settingsStore = await SettingsStoreBase.load(
|
||||||
nodeSource: _nodeSource, isBitcoinBuyEnabled: isBitcoinBuyEnabled,
|
nodeSource: _nodeSource, isBitcoinBuyEnabled: isBitcoinBuyEnabled,
|
||||||
isMoonPayEnabled: isMoonPayEnabled);
|
isMoonPayEnabled: true);
|
||||||
|
|
||||||
if (_isSetupFinished) {
|
if (_isSetupFinished) {
|
||||||
return;
|
return;
|
||||||
|
|
|
@ -253,7 +253,7 @@ abstract class SettingsStoreBase with Store {
|
||||||
(secrets.wyreApiKey?.isNotEmpty ?? false) &&
|
(secrets.wyreApiKey?.isNotEmpty ?? false) &&
|
||||||
(secrets.wyreAccountId?.isNotEmpty ?? false);
|
(secrets.wyreAccountId?.isNotEmpty ?? false);
|
||||||
|
|
||||||
var isMoonPayEnabled = false;
|
/*var isMoonPayEnabled = false;
|
||||||
try {
|
try {
|
||||||
final locale = await Devicelocale.currentLocale;
|
final locale = await Devicelocale.currentLocale;
|
||||||
final deviceCountryCode = locale.split('_').last;
|
final deviceCountryCode = locale.split('_').last;
|
||||||
|
@ -261,12 +261,12 @@ abstract class SettingsStoreBase with Store {
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
isMoonPayEnabled = false;
|
isMoonPayEnabled = false;
|
||||||
print(e.toString());
|
print(e.toString());
|
||||||
}
|
}*/
|
||||||
|
|
||||||
final settings = await SettingsStoreBase.load(
|
final settings = await SettingsStoreBase.load(
|
||||||
nodeSource: nodeSource,
|
nodeSource: nodeSource,
|
||||||
isBitcoinBuyEnabled: isBitcoinBuyEnabled,
|
isBitcoinBuyEnabled: isBitcoinBuyEnabled,
|
||||||
isMoonPayEnabled: isMoonPayEnabled,
|
isMoonPayEnabled: true,
|
||||||
initialBalanceDisplayMode: initialBalanceDisplayMode,
|
initialBalanceDisplayMode: initialBalanceDisplayMode,
|
||||||
initialFiatCurrency: initialFiatCurrency,
|
initialFiatCurrency: initialFiatCurrency,
|
||||||
initialMoneroTransactionPriority: initialMoneroTransactionPriority,
|
initialMoneroTransactionPriority: initialMoneroTransactionPriority,
|
||||||
|
|
Loading…
Reference in a new issue