Importing data does not require restarting

This commit is contained in:
2025-01-23 18:27:46 +08:00
parent 5184130ff8
commit 312e991935
2 changed files with 4 additions and 3 deletions

View File

@@ -107,7 +107,7 @@ class _AppSettingsState extends State<AppSettings> {
actionTitle: 'Export'.tl,
).toSliver(),
_CallbackSetting(
title: "Import App Data (Please restart after success)".tl,
title: "Import App Data".tl,
callback: () async {
var controller = showLoadingDialog(context);
var file = await selectFile(ext: ['venera', 'picadata']);
@@ -126,6 +126,7 @@ class _AppSettingsState extends State<AppSettings> {
context.showMessage(message: "Failed to import data".tl);
} finally {
cacheFile.deleteIgnoreError();
App.forceRebuild();
}
}
controller.close();