mirror of
https://github.com/cake-tech/cake_wallet.git
synced 2025-06-28 20:39:51 +00:00
add onramper uuid to backup [skip ci]
This commit is contained in:
parent
a4c2058755
commit
3d0cd92d7b
1 changed files with 4 additions and 0 deletions
|
@ -264,6 +264,7 @@ class BackupService {
|
||||||
final syncMode = data[PreferencesKey.syncModeKey] as int?;
|
final syncMode = data[PreferencesKey.syncModeKey] as int?;
|
||||||
final autoGenerateSubaddressStatus =
|
final autoGenerateSubaddressStatus =
|
||||||
data[PreferencesKey.autoGenerateSubaddressStatusKey] as int?;
|
data[PreferencesKey.autoGenerateSubaddressStatusKey] as int?;
|
||||||
|
final onramperUUID = data[PreferencesKey.onramperUUIDKey] as String?;
|
||||||
|
|
||||||
await _sharedPreferences.setString(PreferencesKey.currentWalletName, currentWalletName);
|
await _sharedPreferences.setString(PreferencesKey.currentWalletName, currentWalletName);
|
||||||
|
|
||||||
|
@ -374,6 +375,8 @@ class BackupService {
|
||||||
|
|
||||||
if (syncMode != null) await _sharedPreferences.setInt(PreferencesKey.syncModeKey, syncMode);
|
if (syncMode != null) await _sharedPreferences.setInt(PreferencesKey.syncModeKey, syncMode);
|
||||||
|
|
||||||
|
if (onramperUUID != null) await _sharedPreferences.setString(PreferencesKey.onramperUUIDKey, onramperUUID);
|
||||||
|
|
||||||
await preferencesFile.delete();
|
await preferencesFile.delete();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -513,6 +516,7 @@ class BackupService {
|
||||||
PreferencesKey.syncAllKey: _sharedPreferences.getBool(PreferencesKey.syncAllKey),
|
PreferencesKey.syncAllKey: _sharedPreferences.getBool(PreferencesKey.syncAllKey),
|
||||||
PreferencesKey.autoGenerateSubaddressStatusKey:
|
PreferencesKey.autoGenerateSubaddressStatusKey:
|
||||||
_sharedPreferences.getInt(PreferencesKey.autoGenerateSubaddressStatusKey),
|
_sharedPreferences.getInt(PreferencesKey.autoGenerateSubaddressStatusKey),
|
||||||
|
PreferencesKey.onramperUUIDKey: _sharedPreferences.getString(PreferencesKey.onramperUUIDKey),
|
||||||
};
|
};
|
||||||
|
|
||||||
return json.encode(preferences);
|
return json.encode(preferences);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue