dont export/import pinlength (#2100)

Matthew Fosse committed Mar 19, 2025 at 10:09 UTC 52a39e29d457f2060512216ffda622287e54c9a1
1 file changed -5
lib/core/backup_service.dart
-5
@@ -275,7 +275,6 @@ class BackupService {
275 final currentLanguageCode = data[PreferencesKey.currentLanguageCode] as String?;
276 final displayActionListMode = data[PreferencesKey.displayActionListModeKey] as int?;
277 final fiatApiMode = data[PreferencesKey.currentFiatApiModeKey] as int?;
278 - final currentPinLength = data[PreferencesKey.currentPinLength] as int?;
278 final currentTheme = data[PreferencesKey.currentTheme] as int?;
279 final exchangeStatus = data[PreferencesKey.exchangeStatusKey] as int?;
280 final currentDefaultSettingsMigrationVersion =
@@ -345,9 +344,6 @@ class BackupService {
344 await _sharedPreferences.setInt(
345 PreferencesKey.autoGenerateSubaddressStatusKey, autoGenerateSubaddressStatus);
346
348 - if (currentPinLength != null)
349 - await _sharedPreferences.setInt(PreferencesKey.currentPinLength, currentPinLength);
350 -
347 if (currentTheme != null && DeviceInfo.instance.isMobile) {
348 await _sharedPreferences.setInt(PreferencesKey.currentTheme, currentTheme);
349 // enforce dark theme on desktop platforms until the design is ready:
@@ -506,7 +502,6 @@ class BackupService {
502 PreferencesKey.shouldSaveRecipientAddressKey:
503 _sharedPreferences.getBool(PreferencesKey.shouldSaveRecipientAddressKey),
504 PreferencesKey.disableTradeOption: _sharedPreferences.getBool(PreferencesKey.disableTradeOption),
509 - PreferencesKey.currentPinLength: _sharedPreferences.getInt(PreferencesKey.currentPinLength),
505 PreferencesKey.currentTransactionPriorityKeyLegacy:
506 _sharedPreferences.getInt(PreferencesKey.currentTransactionPriorityKeyLegacy),
507 PreferencesKey.currentBitcoinElectrumSererIdKey: