mirror of
https://ghfast.top/https://github.com/StarCitizenToolBox/app.git
synced 2025-06-28 11:24:46 +08:00
bugfix
This commit is contained in:
@ -155,9 +155,15 @@ class SettingsUIModel extends _$SettingsUIModel {
|
||||
final dir2 = Directory(
|
||||
"${appGlobalState.applicationSupportDir}/launcher_enhance_data");
|
||||
if (!context.mounted) return;
|
||||
await dir1.delete(recursive: true).unwrap(context: context);
|
||||
if (await dir1.exists()) {
|
||||
if (!context.mounted) return;
|
||||
await dir1.delete(recursive: true).unwrap(context: context);
|
||||
}
|
||||
if (!context.mounted) return;
|
||||
await dir2.delete(recursive: true).unwrap(context: context);
|
||||
if (await dir2.exists()) {
|
||||
if (!context.mounted) return;
|
||||
await dir2.delete(recursive: true).unwrap(context: context);
|
||||
}
|
||||
_initState();
|
||||
}
|
||||
}
|
||||
@ -221,4 +227,4 @@ class SettingsUIModel extends _$SettingsUIModel {
|
||||
userBox.get("isUseInternalDNS", defaultValue: false);
|
||||
state = state.copyWith(isUseInternalDNS: isUseInternalDNS);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user