mirror of
https://github.com/cake-tech/cake_wallet.git
synced 2024-11-16 17:27:37 +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 autoGenerateSubaddressStatus =
|
||||
data[PreferencesKey.autoGenerateSubaddressStatusKey] as int?;
|
||||
final onramperUUID = data[PreferencesKey.onramperUUIDKey] as String?;
|
||||
|
||||
await _sharedPreferences.setString(PreferencesKey.currentWalletName, currentWalletName);
|
||||
|
||||
|
@ -374,6 +375,8 @@ class BackupService {
|
|||
|
||||
if (syncMode != null) await _sharedPreferences.setInt(PreferencesKey.syncModeKey, syncMode);
|
||||
|
||||
if (onramperUUID != null) await _sharedPreferences.setString(PreferencesKey.onramperUUIDKey, onramperUUID);
|
||||
|
||||
await preferencesFile.delete();
|
||||
}
|
||||
|
||||
|
@ -513,6 +516,7 @@ class BackupService {
|
|||
PreferencesKey.syncAllKey: _sharedPreferences.getBool(PreferencesKey.syncAllKey),
|
||||
PreferencesKey.autoGenerateSubaddressStatusKey:
|
||||
_sharedPreferences.getInt(PreferencesKey.autoGenerateSubaddressStatusKey),
|
||||
PreferencesKey.onramperUUIDKey: _sharedPreferences.getString(PreferencesKey.onramperUUIDKey),
|
||||
};
|
||||
|
||||
return json.encode(preferences);
|
||||
|
|
Loading…
Reference in a new issue