mirror of https://github.com/keeweb/keeweb
moved icons to a folder
parent
8dc7ad4f01
commit
f1e536cbcf
Before Width: | Height: | Size: 16 KiB After Width: | Height: | Size: 16 KiB |
Before Width: | Height: | Size: 499 B After Width: | Height: | Size: 499 B |
Before Width: | Height: | Size: 872 B After Width: | Height: | Size: 872 B |
|
@ -177,7 +177,7 @@ main.minimizeApp = function (menuItemLabels) {
|
|||
}
|
||||
mainWindow.setSkipTaskbar(true);
|
||||
if (!appIcon) {
|
||||
const image = electron.nativeImage.createFromPath(path.join(__dirname, imagePath));
|
||||
const image = electron.nativeImage.createFromPath(path.join(__dirname, 'img', imagePath));
|
||||
appIcon = new electron.Tray(image);
|
||||
appIcon.on('click', restoreMainWindow);
|
||||
const contextMenu = electron.Menu.buildFromTemplate([
|
||||
|
@ -271,7 +271,7 @@ function createMainWindow() {
|
|||
}
|
||||
};
|
||||
if (process.platform !== 'win32') {
|
||||
windowOptions.icon = path.join(__dirname, 'icon.png');
|
||||
windowOptions.icon = path.join(__dirname, 'img', 'icon.png');
|
||||
}
|
||||
mainWindow = new electron.BrowserWindow(windowOptions);
|
||||
logProgress('creating main window');
|
||||
|
|
Loading…
Reference in New Issue