Skip to content

Commit

Permalink
Build plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
simonhamp authored and github-actions[bot] committed Jan 2, 2025
1 parent 7f58f5a commit f5d9dc6
Showing 1 changed file with 5 additions and 13 deletions.
18 changes: 5 additions & 13 deletions resources/js/electron-plugin/dist/server/api/menuBar.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import express from "express";
import { Menu, Tray } from "electron";
import { app, Menu, Tray } from "electron";
import { compileMenu } from "./helper/index.js";
import state from "../state.js";
import { menubar } from "menubar";
Expand Down Expand Up @@ -46,18 +46,10 @@ router.post("/create", (req, res) => {
if (onlyShowContextMenu) {
const tray = new Tray(icon || state.icon.replace("icon.png", "IconTemplate.png"));
tray.setContextMenu(buildMenu(contextMenu));
state.activeMenuBar = menubar({
tray,
tooltip,
index: false,
showDockIcon,
showOnAllWorkspaces: false,
browserWindow: {
show: false,
width: 0,
height: 0,
}
});
tray.setToolTip(tooltip);
if (!showDockIcon) {
app.dock.hide();
}
}
else {
state.activeMenuBar = menubar({
Expand Down

0 comments on commit f5d9dc6

Please sign in to comment.