mirror of
https://github.com/BTMuli/TeyvatGuide.git
synced 2025-12-15 09:48:14 +08:00
🎨 完善 dialog.open/save 配置
This commit is contained in:
@@ -279,13 +279,16 @@ async function searchCard(): Promise<void> {
|
||||
// 导入 UIAF 数据,进行数据合并、刷新
|
||||
async function importJson(): Promise<void> {
|
||||
const selectedFile = await dialog.open({
|
||||
title: "选择 UIAF 数据文件",
|
||||
multiple: false,
|
||||
filters: [
|
||||
{
|
||||
name: "JSON",
|
||||
name: "UIAF JSON",
|
||||
extensions: ["json"],
|
||||
},
|
||||
],
|
||||
defaultPath: await path.downloadDir(),
|
||||
directory: false,
|
||||
});
|
||||
if (!selectedFile) {
|
||||
showSnackbar({
|
||||
|
||||
Reference in New Issue
Block a user