diff options
author | Rael <rael.gc@gmail.com> | 2015-10-12 15:41:54 -0300 |
---|---|---|
committer | Rael <rael.gc@gmail.com> | 2015-10-12 15:41:54 -0300 |
commit | 76db0fc604ffa0eae1a049107af2a4206af42c5c (patch) | |
tree | 2112f6b98bd082cbd2a63060c4b1af95ddab26b9 | |
parent | 49cdb1fc85cf5909626427b58bddbe4a1a33702b (diff) | |
download | scudcloud-76db0fc604ffa0eae1a049107af2a4206af42c5c.zip scudcloud-76db0fc604ffa0eae1a049107af2a4206af42c5c.tar.gz scudcloud-76db0fc604ffa0eae1a049107af2a4206af42c5c.tar.bz2 |
Workaround for #250
-rwxr-xr-x | scudcloud-1.0/lib/scudcloud.py | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/scudcloud-1.0/lib/scudcloud.py b/scudcloud-1.0/lib/scudcloud.py index ad9dfcc..888fb4e 100755 --- a/scudcloud-1.0/lib/scudcloud.py +++ b/scudcloud-1.0/lib/scudcloud.py @@ -11,7 +11,7 @@ from threading import Thread from PyQt4 import QtCore, QtGui, QtWebKit from PyQt4.Qt import QApplication, QKeySequence, QTimer from PyQt4.QtCore import QUrl, QSettings -from PyQt4.QtWebKit import QWebSettings +from PyQt4.QtWebKit import QWebSettings, QWebPage from PyQt4.QtNetwork import QNetworkDiskCache # Auto-detection of dbus and dbus.mainloop.qt @@ -79,10 +79,14 @@ class ScudCloud(QtGui.QMainWindow): # We want the Resume event if not suspended: self.timer.stop() - # Let's give some time to Slack run reconnect scripts - time.sleep(60) + # 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) webView.page().networkAccessManager().setCookieJar(self.cookiesjar) |