mirror of
https://git.selfprivacy.org/kherel/selfprivacy.org.app.git
synced 2024-11-19 15:19:14 +00:00
fix: Clear serverInstallationWizardData after the wizard is finished
This commit is contained in:
parent
e9f13c5471
commit
9e56afba50
|
@ -538,5 +538,6 @@ class ServerInstallationRepository {
|
|||
await getIt<ResourcesModel>().addBackupsCredential(
|
||||
wizardData.backupsCredential!,
|
||||
);
|
||||
await getIt<WizardDataModel>().clearServerInstallation();
|
||||
}
|
||||
}
|
||||
|
|
|
@ -297,6 +297,11 @@ class WizardDataModel {
|
|||
await _box.put(BNames.serverInstallationWizardData, _serverInstallation);
|
||||
}
|
||||
|
||||
Future<void> clearServerInstallation() async {
|
||||
_serverInstallation = null;
|
||||
await _box.delete(BNames.serverInstallationWizardData);
|
||||
}
|
||||
|
||||
Future<void> clear() async {
|
||||
await _box.clear();
|
||||
await _box.compact();
|
||||
|
|
Loading…
Reference in a new issue