From 503f33a6908862506c374a3933c39117143a54b2 Mon Sep 17 00:00:00 2001 From: Rael Date: Sat, 17 Oct 2015 07:24:20 -0300 Subject: If client is desktop, Slack will open links directly... --- scudcloud-1.0/lib/resources.py | 2 +- scudcloud-1.0/resources/resources.css | 2 +- scudcloud-1.0/scudcloud | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/scudcloud-1.0/lib/resources.py b/scudcloud-1.0/lib/resources.py index cb93d91..f9835d8 100644 --- a/scudcloud-1.0/lib/resources.py +++ b/scudcloud-1.0/lib/resources.py @@ -2,7 +2,7 @@ import os, re class Resources: - APP_NAME = "scudcloud" + APP_NAME = "ScudCloud Slack_SSB" SIGNIN_URL = "https://slack.com/signin" MAINPAGE_URL_RE = re.compile(r'^http[s]://[a-zA-Z0-9_\-]+.slack.com/?$') MESSAGES_URL_RE = re.compile(r'^http[s]://[a-zA-Z0-9_\-]+.slack.com/messages/.*') diff --git a/scudcloud-1.0/resources/resources.css b/scudcloud-1.0/resources/resources.css index 3d1279a..bc30435 100644 --- a/scudcloud-1.0/resources/resources.css +++ b/scudcloud-1.0/resources/resources.css @@ -1,2 +1,2 @@ -nav.top, footer {display: none !important;} +nav.top, footer, #prefs_mac_ssb_tab {display: none !important;} * {font-family: Lato,"Helvetica Neue",Helvetica,"Segoe UI",Tahoma,Arial,sans-serif;} diff --git a/scudcloud-1.0/scudcloud b/scudcloud-1.0/scudcloud index 6b07c37..2010636 100755 --- a/scudcloud-1.0/scudcloud +++ b/scudcloud-1.0/scudcloud @@ -44,7 +44,7 @@ def lock(): runtime_dir = os.environ['XDG_RUNTIME_DIR'] else: runtime_dir = tempfile.gettempdir() - pid_file = runtime_dir+'/'+Resources.APP_NAME+'.pid' + pid_file = runtime_dir+'/scudcloud.pid' fp = open(pid_file, 'w') try: fcntl.lockf(fp, fcntl.LOCK_EX | fcntl.LOCK_NB) -- cgit v1.1 From 33314d7527dd9d27444d2d5d25ec0abc858d63fe Mon Sep 17 00:00:00 2001 From: Rael Date: Sat, 17 Oct 2015 07:41:00 -0300 Subject: Saving menubar state (#251) --- scudcloud-1.0/lib/scudcloud.py | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/scudcloud-1.0/lib/scudcloud.py b/scudcloud-1.0/lib/scudcloud.py index af4fb0c..c590b09 100755 --- a/scudcloud-1.0/lib/scudcloud.py +++ b/scudcloud-1.0/lib/scudcloud.py @@ -104,7 +104,12 @@ class ScudCloud(QtGui.QMainWindow): def toggleMenuBar(self): menu = self.menuBar() - menu.setVisible(menu.isHidden()) + state = menu.isHidden() + menu.setVisible(state) + if state: + self.settings.setValue("Menu", "False") + else: + self.settings.setValue("Menu", "True") def restore(self): geometry = self.settings.value("geometry") @@ -204,6 +209,10 @@ class ScudCloud(QtGui.QMainWindow): showSystray = self.settings.value("Systray") == "True" self.menus["file"]["systray"].setChecked(showSystray) self.menus["file"]["close"].setEnabled(showSystray) + # Restore menu visibility + visible = self.settings.value("Menu") + if visible is not None and visible == "False": + menu.setVisible(False) def enableMenus(self, enabled): self.menus["file"]["preferences"].setEnabled(enabled == True) -- cgit v1.1