mirror of
https://github.com/Eugeny/tabby.git
synced 2025-06-19 19:09:54 +00:00
Merge pull request #1262 from ehwarren/bugfix/app-crashes-when-clicking-on-systray-icon
bugfix/app-crashes-when-clicking-on-systray-icon
This commit is contained in:
commit
d771bd196c
@ -72,7 +72,7 @@ export class Application {
|
|||||||
this.tray = new Tray(`${app.getAppPath()}/assets/tray.png`)
|
this.tray = new Tray(`${app.getAppPath()}/assets/tray.png`)
|
||||||
}
|
}
|
||||||
|
|
||||||
this.tray.on('click', () => this.focus())
|
this.tray.on('click', () => setTimeout(() => this.focus()));
|
||||||
|
|
||||||
const contextMenu = Menu.buildFromTemplate([{
|
const contextMenu = Menu.buildFromTemplate([{
|
||||||
label: 'Show',
|
label: 'Show',
|
||||||
@ -100,7 +100,6 @@ export class Application {
|
|||||||
focus () {
|
focus () {
|
||||||
for (let window of this.windows) {
|
for (let window of this.windows) {
|
||||||
window.show()
|
window.show()
|
||||||
window.focus()
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user