From 8b98c47ddcc4de7f386791388b147956168e07dd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9F=8F=E5=9B=AD=E7=8C=AB?= Date: Sat, 9 Nov 2024 23:25:09 +0800 Subject: [PATCH] feat: add security hint --- App/i18n | 2 +- App/start.js | 7 +++++++ 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/App/i18n b/App/i18n index a103895..d60160e 160000 --- a/App/i18n +++ b/App/i18n @@ -1 +1 @@ -Subproject commit a1038950f9c9b93c9d4d4fdff5f1b72b87185cd0 +Subproject commit d60160e263202496f93edbc5f12c31bae129b77d diff --git a/App/start.js b/App/start.js index b175317..0086803 100644 --- a/App/start.js +++ b/App/start.js @@ -73,6 +73,13 @@ function create_new_site_choose_root_dir() { } function open_site() { + const alertResult = dialog.showMessageBoxSync({ + message: langdata["ALERT_OPEN_SITE"][lang_name], + buttons: [langdata["I_UNDERSTAND"][lang_name], langdata["CANCEL"][lang_name]], + }); + if (alertResult === 1){ + return; + } const rootDir = dialog.showOpenDialogSync({ properties: ["openDirectory"], });