mirror of
https://github.com/venera-app/venera.git
synced 2025-09-27 15:57:25 +00:00
Importing data does not require restarting
This commit is contained in:
@@ -160,7 +160,7 @@
|
|||||||
"Date Desc": "日期降序",
|
"Date Desc": "日期降序",
|
||||||
"Start": "开始",
|
"Start": "开始",
|
||||||
"Export App Data": "导出应用数据",
|
"Export App Data": "导出应用数据",
|
||||||
"Import App Data (Please restart after success)": "导入应用数据(成功后请手动重启)",
|
"Import App Data": "导入应用数据",
|
||||||
"Export": "导出",
|
"Export": "导出",
|
||||||
"Download Threads": "下载线程数",
|
"Download Threads": "下载线程数",
|
||||||
"Update Time": "更新时间",
|
"Update Time": "更新时间",
|
||||||
@@ -477,7 +477,7 @@
|
|||||||
"Start": "開始",
|
"Start": "開始",
|
||||||
"Reversed successfully": "反轉成功",
|
"Reversed successfully": "反轉成功",
|
||||||
"Export App Data": "匯出應用數據",
|
"Export App Data": "匯出應用數據",
|
||||||
"Import App Data (Please restart after success)": "匯入應用數據(成功后請手動重啟)",
|
"Import App Data": "匯入應用數據",
|
||||||
"Export": "匯出",
|
"Export": "匯出",
|
||||||
"Download Threads": "下載線程數",
|
"Download Threads": "下載線程數",
|
||||||
"Update Time": "更新時間",
|
"Update Time": "更新時間",
|
||||||
|
@@ -107,7 +107,7 @@ class _AppSettingsState extends State<AppSettings> {
|
|||||||
actionTitle: 'Export'.tl,
|
actionTitle: 'Export'.tl,
|
||||||
).toSliver(),
|
).toSliver(),
|
||||||
_CallbackSetting(
|
_CallbackSetting(
|
||||||
title: "Import App Data (Please restart after success)".tl,
|
title: "Import App Data".tl,
|
||||||
callback: () async {
|
callback: () async {
|
||||||
var controller = showLoadingDialog(context);
|
var controller = showLoadingDialog(context);
|
||||||
var file = await selectFile(ext: ['venera', 'picadata']);
|
var file = await selectFile(ext: ['venera', 'picadata']);
|
||||||
@@ -126,6 +126,7 @@ class _AppSettingsState extends State<AppSettings> {
|
|||||||
context.showMessage(message: "Failed to import data".tl);
|
context.showMessage(message: "Failed to import data".tl);
|
||||||
} finally {
|
} finally {
|
||||||
cacheFile.deleteIgnoreError();
|
cacheFile.deleteIgnoreError();
|
||||||
|
App.forceRebuild();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
controller.close();
|
controller.close();
|
||||||
|
Reference in New Issue
Block a user