From 2aac443cf17a85a3b87958b35506402cc527c575 Mon Sep 17 00:00:00 2001 From: Rael Date: Sun, 1 Nov 2015 21:33:27 -0200 Subject: Calling just overrideNotification on wrapper timer --- scudcloud-1.0/lib/wrapper.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/scudcloud-1.0/lib/wrapper.py b/scudcloud-1.0/lib/wrapper.py index 17f6c92..084c631 100644 --- a/scudcloud-1.0/lib/wrapper.py +++ b/scudcloud-1.0/lib/wrapper.py @@ -31,14 +31,17 @@ class Wrapper(QWebView): # Starting a timer that will check by server side reloads (which drops ScudCloud notification) def setupTimer(self): timer = QTimer(self) - timer.timeout.connect(self._loadFinished) + timer.timeout.connect(self.overrideNotifications) # Hope each 10 minutes will not be produce high CPU usage timer.setInterval(600000) timer.start() + def overrideNotifications(self): + self.call("overrideNotifications") + def permissionRequested(self, frame, feature): self.page().setFeaturePermission(frame, feature, QWebPage.PermissionGrantedByUser) - self.call("overrideNotifications") + self.overrideNotifications() def configure_proxy(self): proxy = urlparse(os.environ.get('http_proxy') or os.environ.get('HTTP_PROXY')) -- cgit v1.1