diff options
author | Rael <rael.gc@gmail.com> | 2015-10-15 05:34:04 -0300 |
---|---|---|
committer | Rael <rael.gc@gmail.com> | 2015-10-15 05:34:04 -0300 |
commit | 14cb4ea373ee81c95fa21a6050bc47aef4f71d6c (patch) | |
tree | aa27257a3cc9f5c8d0a985a456a7c614a01fc8f7 | |
parent | 202f2c74f50b806b5d8f391c29268aaebdec6008 (diff) | |
download | scudcloud-14cb4ea373ee81c95fa21a6050bc47aef4f71d6c.zip scudcloud-14cb4ea373ee81c95fa21a6050bc47aef4f71d6c.tar.gz scudcloud-14cb4ea373ee81c95fa21a6050bc47aef4f71d6c.tar.bz2 |
Removing watch resume event
-rwxr-xr-x | scudcloud-1.0/lib/scudcloud.py | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/scudcloud-1.0/lib/scudcloud.py b/scudcloud-1.0/lib/scudcloud.py index c037afc..e1bc8ad 100755 --- a/scudcloud-1.0/lib/scudcloud.py +++ b/scudcloud-1.0/lib/scudcloud.py @@ -70,22 +70,6 @@ class ScudCloud(QtGui.QMainWindow): self.statusBar().showMessage('Loading Slack...') # Starting unread msgs counter self.setupTimer() - # Watch for suspend/resume events - if DBusQtMainLoop is not None: - DBusQtMainLoop(set_as_default=True) - dbus.SystemBus().add_signal_receiver(self.sleep, 'PrepareForSleep', 'org.freedesktop.login1.Manager', 'org.freedesktop.login1') - - def sleep(self, suspended): - # We want the Resume event - if not suspended: - self.timer.stop() - # Let's give some time to the desktop reconnect - time.sleep(10) - self.statusBar().showMessage('Loading Slack...') - for i in range(0, self.stackedWidget.count()): - self.stackedWidget.widget(i).page().triggerAction(QWebPage.Reload) - self.timer.start() - def addWrapper(self, url): webView = Wrapper(self) |