Skip to content

Commit

Permalink
feat: add security hint
Browse files Browse the repository at this point in the history
  • Loading branch information
baiyuanneko committed Nov 9, 2024
1 parent ea01ba9 commit 8b98c47
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
2 changes: 1 addition & 1 deletion App/i18n
7 changes: 7 additions & 0 deletions App/start.js
Original file line number Diff line number Diff line change
Expand Up @@ -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"],
});
Expand Down

0 comments on commit 8b98c47

Please sign in to comment.