diff options
Diffstat (limited to 'Locker.py')
-rw-r--r-- | Locker.py | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -50,3 +50,10 @@ class Locker(object): self.locked = False GLib.timeout_add_seconds(1, self._checkLock) + + def _canLogout(self): + return (self.locked and self.doLogout is not None and self.currentLogoutTimeout <= 0) + + def logout(self): + if self._canLogout(): + self.doLogout() |