mirror of
https://github.com/venera-app/venera.git
synced 2025-09-27 07:47:24 +00:00
Importing data does not require restarting
This commit is contained in:
@@ -160,7 +160,7 @@
|
||||
"Date Desc": "日期降序",
|
||||
"Start": "开始",
|
||||
"Export App Data": "导出应用数据",
|
||||
"Import App Data (Please restart after success)": "导入应用数据(成功后请手动重启)",
|
||||
"Import App Data": "导入应用数据",
|
||||
"Export": "导出",
|
||||
"Download Threads": "下载线程数",
|
||||
"Update Time": "更新时间",
|
||||
@@ -477,7 +477,7 @@
|
||||
"Start": "開始",
|
||||
"Reversed successfully": "反轉成功",
|
||||
"Export App Data": "匯出應用數據",
|
||||
"Import App Data (Please restart after success)": "匯入應用數據(成功后請手動重啟)",
|
||||
"Import App Data": "匯入應用數據",
|
||||
"Export": "匯出",
|
||||
"Download Threads": "下載線程數",
|
||||
"Update Time": "更新時間",
|
||||
|
@@ -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();
|
||||
|
Reference in New Issue
Block a user