Skip to content

Commit

Permalink
move setUserModelId to be inside on ready
Browse files Browse the repository at this point in the history
  • Loading branch information
OrangeDrangon committed Apr 7, 2022
1 parent 2cf51ff commit 8ef1049
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/background.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,11 +38,6 @@ if (!app.requestSingleInstanceLock()) {
app.quit();
}

if (IS_WINDOWS) {
app.setAppUserModelId("pw.kmr.android-messages-desktop");
app.setAsDefaultProtocolClient("android-messages-desktop");
}

if (IS_MAC) {
app.on("activate", () => {
if (mainWindow) {
Expand All @@ -53,6 +48,11 @@ if (IS_MAC) {
}

app.on("ready", () => {
if (IS_WINDOWS) {
app.setAppUserModelId("pw.kmr.android-messages-desktop");
app.setAsDefaultProtocolClient("android-messages-desktop");
}

trayManager = new TrayManager();

new MenuManager();
Expand Down

0 comments on commit 8ef1049

Please sign in to comment.