From cdfd84a7f85983a1a86e25e9f2f3c36779040b83 Mon Sep 17 00:00:00 2001 From: Eugene Pankov Date: Tue, 24 Apr 2018 15:56:54 +0200 Subject: [PATCH] auto-show window when cmd-tabbing into Terminus --- terminus-core/src/components/appRoot.component.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/terminus-core/src/components/appRoot.component.ts b/terminus-core/src/components/appRoot.component.ts index b4dc451e..2338838e 100644 --- a/terminus-core/src/components/appRoot.component.ts +++ b/terminus-core/src/components/appRoot.component.ts @@ -131,7 +131,9 @@ export class AppRootComponent { if (this.electron.app.window.isFocused()) { // focused this.electron.loseFocus() - this.electron.app.window.hide() + if (this.hostApp.platform !== Platform.macOS) { + this.electron.app.window.hide() + } } else { if (!this.electron.app.window.isVisible()) { // unfocused, invisible