This commit is contained in:
Eugene Pankov
2020-04-20 11:25:20 +02:00
parent f8645df60c
commit d36ef2e48e
5 changed files with 9 additions and 9 deletions

View File

@@ -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()