mirror of
https://github.com/jeffvli/feishin.git
synced 2026-05-09 20:29:36 +02:00
allow system tray in macOS (#1539)
This commit is contained in:
+4
-6
@@ -185,13 +185,11 @@ const createWinThumbarButtons = () => {
|
|||||||
};
|
};
|
||||||
|
|
||||||
const createTray = () => {
|
const createTray = () => {
|
||||||
if (isMacOS()) {
|
tray =
|
||||||
return;
|
isLinux() || isMacOS()
|
||||||
}
|
? new Tray(getAssetPath('icons/icon.png'))
|
||||||
|
: new Tray(getAssetPath('icons/icon.ico'));
|
||||||
|
|
||||||
tray = isLinux()
|
|
||||||
? new Tray(getAssetPath('icons/icon.png'))
|
|
||||||
: new Tray(getAssetPath('icons/icon.ico'));
|
|
||||||
const contextMenu = Menu.buildFromTemplate([
|
const contextMenu = Menu.buildFromTemplate([
|
||||||
{
|
{
|
||||||
click: () => {
|
click: () => {
|
||||||
|
|||||||
Reference in New Issue
Block a user