mirror of
https://github.com/tobspr/shapez.io.git
synced 2025-12-14 02:31:51 +00:00
Update confirm dialgo
This commit is contained in:
parent
53c3cbfe26
commit
4e33eb5a7c
@ -351,21 +351,10 @@ ipcMain.handle("get-mods", async () => {
|
|||||||
buttons: ["Exit Game", "Continue"],
|
buttons: ["Exit Game", "Continue"],
|
||||||
type: "warning",
|
type: "warning",
|
||||||
defaultId: 0,
|
defaultId: 0,
|
||||||
|
|
||||||
checkboxLabel:
|
|
||||||
"I understand that mods have access to my file system and can be potentially harmful",
|
|
||||||
checkboxChecked: false,
|
|
||||||
cancelId: 0,
|
cancelId: 0,
|
||||||
});
|
});
|
||||||
if (response.response === 1) {
|
if (response.response === 1) {
|
||||||
if (response.checkboxChecked) {
|
break;
|
||||||
break;
|
|
||||||
} else {
|
|
||||||
await dialog.showMessageBox(win, {
|
|
||||||
message:
|
|
||||||
"Please confirm that you have understood the risks by checking the checkbox in the next dialog.",
|
|
||||||
});
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
if (response.response === 0) {
|
if (response.response === 0) {
|
||||||
process.exit(0);
|
process.exit(0);
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user