summaryrefslogtreecommitdiffstats
path: root/src/Gui/CCMainWindow.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/Gui/CCMainWindow.py')
-rw-r--r--src/Gui/CCMainWindow.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/Gui/CCMainWindow.py b/src/Gui/CCMainWindow.py
index fa01882..9d9ff4d 100644
--- a/src/Gui/CCMainWindow.py
+++ b/src/Gui/CCMainWindow.py
@@ -106,9 +106,16 @@ class MainWindow():
self.ccdaemon.connect("error", self.error_cb)
self.ccdaemon.connect("update", self.update_cb)
self.ccdaemon.connect("show", self.show_cb)
+ self.ccdaemon.connect("daemon-state-changed", self.on_daemon_state_changed_cb)
# load data
#self.load()
+ def on_daemon_state_changed_cb(self, widget, state):
+ if state == "up":
+ self.hydrate()
+ self.window.set_sensitive(True)
+ elif state == "down":
+ self.window.set_sensitive(False)
def on_miAbout_clicked(self, widget):
dialog = self.wTree.get_widget("about")