summaryrefslogtreecommitdiffstats
path: root/module/gui/connector.py
diff options
context:
space:
mode:
Diffstat (limited to 'module/gui/connector.py')
-rw-r--r--module/gui/connector.py23
1 files changed, 23 insertions, 0 deletions
diff --git a/module/gui/connector.py b/module/gui/connector.py
index 3627545ba..32da29bba 100644
--- a/module/gui/connector.py
+++ b/module/gui/connector.py
@@ -154,3 +154,26 @@ class connector(QThread):
self.proxy.add_urls(links)
finally:
self.mutex.unlock()
+
+ def togglePause(self):
+ """
+ toogle pause
+ """
+ self.mutex.lock()
+ try:
+ return self.proxy.toggle_pause()
+ finally:
+ self.mutex.unlock()
+
+ def setPause(self, pause):
+ """
+ set pause
+ """
+ self.mutex.lock()
+ try:
+ if pause:
+ self.proxy.pause_server()
+ else:
+ self.proxy.unpause_server()
+ finally:
+ self.mutex.unlock()