mirror of
https://github.com/eugeny/tabby
synced 2025-12-11 18:25:57 +00:00
avoid rechecking window status on every loop
This commit is contained in:
@@ -303,6 +303,9 @@ export class Window {
|
||||
this.window.on('enter-full-screen', () => this.send('host:window-enter-full-screen'))
|
||||
this.window.on('leave-full-screen', () => this.send('host:window-leave-full-screen'))
|
||||
|
||||
this.window.on('maximize', () => this.send('host:window-maximized'))
|
||||
this.window.on('unmaximize', () => this.send('host:window-unmaximized'))
|
||||
|
||||
this.window.on('close', event => {
|
||||
if (!this.closing) {
|
||||
event.preventDefault()
|
||||
|
||||
Reference in New Issue
Block a user