mirror of
https://github.com/heyman/heynote.git
synced 2024-11-29 03:13:48 +01:00
FIX: fixed trayicon on linux not appearing
This commit is contained in:
parent
554e04ea67
commit
e9c472757a
@ -6,7 +6,7 @@ import fs from "fs"
|
||||
import { menu, getTrayMenu } from './menu'
|
||||
import { WINDOW_CLOSE_EVENT, SETTINGS_CHANGE_EVENT } from '../constants';
|
||||
import CONFIG from "../config"
|
||||
import { isDev, isMac, isWindows } from '../detect-platform';
|
||||
import { isDev, isLinux, isMac, isWindows } from '../detect-platform';
|
||||
import { initializeAutoUpdate, checkForUpdates } from './auto-update';
|
||||
import { fixElectronCors } from './cors';
|
||||
import { loadBuffer, contentSaved } from './buffer';
|
||||
@ -145,7 +145,9 @@ function createTray() {
|
||||
let img
|
||||
if (isMac) {
|
||||
img = nativeImage.createFromPath(join(process.env.PUBLIC, "iconTemplate.png"))
|
||||
} else {
|
||||
} else if(isLinux){
|
||||
img = nativeImage.createFromPath(join(process.env.PUBLIC, 'favicon-linux.png'));
|
||||
} else{
|
||||
img = nativeImage.createFromPath(join(process.env.PUBLIC, 'favicon.ico'));
|
||||
}
|
||||
tray = new Tray(img);
|
||||
|
BIN
public/favicon-linux.png
Normal file
BIN
public/favicon-linux.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 1.3 KiB |
Loading…
Reference in New Issue
Block a user