Desktop manager gained focus event

This commit is contained in:
Mo Bitar
2018-12-17 19:28:48 -06:00
parent 6a00353eef
commit 59531bc963
2 changed files with 7 additions and 1 deletions

View File

@@ -79,6 +79,12 @@ class DesktopManager {
this.searchHandler = handler;
}
desktop_windowGainedFocus() {
if(!this.passcodeManager.isLocked()) {
this.syncManager.sync();
}
}
desktop_windowLostFocus() {
this.$rootScope.$broadcast("window-lost-focus");
}