Skip to content

Commit

Permalink
Fix confirm close dialog
Browse files Browse the repository at this point in the history
  • Loading branch information
Nadwey committed Feb 3, 2024
1 parent eac661b commit 5549742
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/main/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@ async function createWindow() {
const choice = dialog.showMessageBoxSync(mainWindow, {
type: "question",
buttons: ["Yes", "No"],
title: "Are you sure you want to quit?",
message: "Installations are running.",
title: "Confirm",
message: "Are you sure you want to quit? There are installations in progress.",
});
if (choice === 1) {
e.preventDefault();
Expand Down
2 changes: 1 addition & 1 deletion src/main/renderer_bridge/versionManager.js
Original file line number Diff line number Diff line change
Expand Up @@ -86,5 +86,5 @@ ipcMain.handle(IpcMessages.VERSION_MANAGER.RUN_VERSION, (e, versionTag) => {
});

export function areInstallationsRunning() {
return false;
return Object.values(installers).some((installer) => installer !== null);
}

0 comments on commit 5549742

Please sign in to comment.