diff options
author | Rael <rael.gc@gmail.com> | 2015-11-19 09:39:39 -0200 |
---|---|---|
committer | Rael <rael.gc@gmail.com> | 2015-11-19 09:39:39 -0200 |
commit | a33bb67eb0755edbf6bc8d5ecf124a57c3a522f3 (patch) | |
tree | 375246fbdae10f89ba287ec5d40fb5864c323516 | |
parent | 018b3ad8e1656a1c08ba69d58f53e5a60ac74e79 (diff) | |
download | scudcloud-a33bb67eb0755edbf6bc8d5ecf124a57c3a522f3.zip scudcloud-a33bb67eb0755edbf6bc8d5ecf124a57c3a522f3.tar.gz scudcloud-a33bb67eb0755edbf6bc8d5ecf124a57c3a522f3.tar.bz2 |
Adding some comments
-rw-r--r-- | scudcloud-1.0/lib/wrapper.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/scudcloud-1.0/lib/wrapper.py b/scudcloud-1.0/lib/wrapper.py index 65c6c6b..9d1c348 100644 --- a/scudcloud-1.0/lib/wrapper.py +++ b/scudcloud-1.0/lib/wrapper.py @@ -83,8 +83,6 @@ class Wrapper(QWebView): def _loadStarted(self): # Some custom CSS to clean/fix UX self.settings().setUserStyleSheetUrl(QUrl.fromLocalFile(Resources.get_path("resources.css"))) - # Starting the webkit-JS bridge - self.page().currentFrame().addToJavaScriptWindowObject("desktop", self) def _urlChanged(self, qUrl): url = qUrl.toString() @@ -94,6 +92,9 @@ class Wrapper(QWebView): self.load(QUrl("https://"+qUrl.host()+"/messages/general")) def _loadFinished(self, ok=True): + # Starting the webkit-JS bridge + self.page().currentFrame().addToJavaScriptWindowObject("desktop", self) + # Loading ScudCloud JS client self.page().currentFrame().evaluateJavaScript(self.js) self.window.statusBar().hide() |