mirror of
https://github.com/Eugeny/tabby.git
synced 2025-07-20 02:18:01 +00:00
lint
This commit is contained in:
@@ -12,7 +12,7 @@ export class Application {
|
||||
ipcMain.on('app:config-change', (_event, config) => {
|
||||
this.broadcast('host:config-change', config)
|
||||
})
|
||||
|
||||
|
||||
ipcMain.on('app:register-global-hotkey', (_event, specs) => {
|
||||
globalShortcut.unregisterAll()
|
||||
for (let spec of specs) {
|
||||
@@ -64,7 +64,7 @@ export class Application {
|
||||
return window
|
||||
}
|
||||
|
||||
onGlobalHotkey () {
|
||||
onGlobalHotkey (): void {
|
||||
if (this.windows.some(x => x.isFocused())) {
|
||||
for (let window of this.windows) {
|
||||
window.hide()
|
||||
@@ -76,7 +76,7 @@ export class Application {
|
||||
}
|
||||
}
|
||||
|
||||
presentAllWindows() {
|
||||
presentAllWindows (): void {
|
||||
for (let window of this.windows) {
|
||||
window.present()
|
||||
}
|
||||
|
@@ -169,7 +169,7 @@ export class Window {
|
||||
return this.window.isFocused()
|
||||
}
|
||||
|
||||
hide () {
|
||||
hide (): void {
|
||||
if (process.platform === 'darwin') {
|
||||
// Lose focus
|
||||
Menu.sendActionToFirstResponder('hide:')
|
||||
@@ -180,7 +180,7 @@ export class Window {
|
||||
}
|
||||
}
|
||||
|
||||
present () {
|
||||
present (): void {
|
||||
if (!this.window.isVisible()) {
|
||||
// unfocused, invisible
|
||||
this.window.show()
|
||||
|
Reference in New Issue
Block a user