Skip to content

Commit

Permalink
Merge pull request #123 from tom-james-watson/macos-dock
Browse files Browse the repository at this point in the history
stop macos dock icon from appearing
  • Loading branch information
tom-james-watson authored Nov 7, 2021
2 parents 33d3147 + 95c8c25 commit e22c090
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
3 changes: 2 additions & 1 deletion app/main/lib/windows.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import path from "path";
import { screen, BrowserWindow } from "electron";
import { app, screen, BrowserWindow } from "electron";
import log from "electron-log";
import { endPopupBreak } from "./breaks";

Expand Down Expand Up @@ -108,6 +108,7 @@ export function createBreakWindows(): void {
});

breakWindow.setVisibleOnAllWorkspaces(true);
app.dock.hide();
breakWindow.loadURL(getBrowserWindowUrl("break"));

breakWindow.on("ready-to-show", () => {
Expand Down
3 changes: 3 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,9 @@
"mac": {
"entitlements": "./internals/build/entitlements.mac.plist",
"entitlementsInherit": "./internals/build/entitlements.mac.plist",
"extendInfo": {
"LSUIElement": 1
},
"gatekeeperAssess": false,
"hardenedRuntime": true,
"target": [
Expand Down

0 comments on commit e22c090

Please sign in to comment.