auto-show window when cmd-tabbing into Terminus

This commit is contained in:
Eugene Pankov
2018-04-24 15:56:54 +02:00
parent 128fe24003
commit cdfd84a7f8

View File

@@ -131,7 +131,9 @@ export class AppRootComponent {
if (this.electron.app.window.isFocused()) { if (this.electron.app.window.isFocused()) {
// focused // focused
this.electron.loseFocus() this.electron.loseFocus()
this.electron.app.window.hide() if (this.hostApp.platform !== Platform.macOS) {
this.electron.app.window.hide()
}
} else { } else {
if (!this.electron.app.window.isVisible()) { if (!this.electron.app.window.isVisible()) {
// unfocused, invisible // unfocused, invisible