diff --git a/lib/logic/cubit/server_installation/server_installation_repository.dart b/lib/logic/cubit/server_installation/server_installation_repository.dart index d2a23426..57b47c81 100644 --- a/lib/logic/cubit/server_installation/server_installation_repository.dart +++ b/lib/logic/cubit/server_installation/server_installation_repository.dart @@ -538,5 +538,6 @@ class ServerInstallationRepository { await getIt().addBackupsCredential( wizardData.backupsCredential!, ); + await getIt().clearServerInstallation(); } } diff --git a/lib/logic/get_it/resources_model.dart b/lib/logic/get_it/resources_model.dart index 269f0fe8..ebde7870 100644 --- a/lib/logic/get_it/resources_model.dart +++ b/lib/logic/get_it/resources_model.dart @@ -297,6 +297,11 @@ class WizardDataModel { await _box.put(BNames.serverInstallationWizardData, _serverInstallation); } + Future clearServerInstallation() async { + _serverInstallation = null; + await _box.delete(BNames.serverInstallationWizardData); + } + Future clear() async { await _box.clear(); await _box.compact();