fixed focus detection (fixes #185)

This commit is contained in:
Eugene Pankov 2018-09-22 12:27:34 +02:00
parent e315654d0a
commit dc864781e4

View File

@ -157,6 +157,7 @@ export class AppRootComponent {
if (this.hostApp.getWindow().isFocused()) {
// focused
this.electron.loseFocus()
this.hostApp.getWindow().blur()
if (this.hostApp.platform !== Platform.macOS) {
this.hostApp.getWindow().hide()
}