Skip to content

Commit

Permalink
small fix
Browse files Browse the repository at this point in the history
  • Loading branch information
sigmaSd committed Mar 1, 2024
1 parent a46b96c commit 96c6d0c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/indicator/indicator_api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ export class Indicator {
this.#mainWindow.present();
break;
case MESSAGES.Close:
this.#mainWindow.app.quit();
this.#mainWindow.quit();
break;
case MESSAGES.Empty:
// NOTE: the indicator have exited
Expand Down
4 changes: 4 additions & 0 deletions src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -188,6 +188,10 @@ export class MainWindow {
localStorage.setItem("state", JSON.stringify(this.#state));
}

quit() {
this.#app.quit();
}

#showPreferences = () => {
this.#preferencesMenu.present();
};
Expand Down

0 comments on commit 96c6d0c

Please sign in to comment.