mirror of
https://github.com/vector-im/element-desktop.git
synced 2024-10-02 00:52:41 +00:00
Fix development issue on Windows (#1466)
This commit is contained in:
parent
18c4c9df93
commit
07fe7ac647
1 changed files with 3 additions and 1 deletions
|
@ -72,7 +72,9 @@ export function create(config: IConfig): void {
|
|||
guid = uuidv5(`${app.getName()}-${app.getPath("userData")}`, getUuid());
|
||||
}
|
||||
|
||||
trayIcon = new Tray(defaultIcon, guid);
|
||||
// Passing guid=undefined on Windows will cause it to throw `Error: Invalid GUID format`
|
||||
// The type here is wrong, the param must be omitted, never undefined.
|
||||
trayIcon = guid ? new Tray(defaultIcon, guid) : new Tray(defaultIcon);
|
||||
trayIcon.setToolTip(config.brand);
|
||||
initApplicationMenu();
|
||||
trayIcon.on("click", toggleWin);
|
||||
|
|
Loading…
Reference in a new issue