aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael van Bracht <mvb@solute.de>2015-09-25 07:52:27 +0200
committerMichael van Bracht <mvb@solute.de>2015-09-25 07:52:27 +0200
commit28a0312696a643704e155b00dd275bb630514af7 (patch)
tree04ffa842684e6b7ec00da637b5134d88b55abc95
parent192fdab6624de8948f6932fb46a2e11d77be1734 (diff)
downloadscudcloud-28a0312696a643704e155b00dd275bb630514af7.zip
scudcloud-28a0312696a643704e155b00dd275bb630514af7.tar.gz
scudcloud-28a0312696a643704e155b00dd275bb630514af7.tar.bz2
Do not allow hiding the menubar on Unity
-rwxr-xr-xscudcloud-1.0/lib/scudcloud.py3
-rw-r--r--scudcloud-1.0/lib/systray.py4
2 files changed, 5 insertions, 2 deletions
diff --git a/scudcloud-1.0/lib/scudcloud.py b/scudcloud-1.0/lib/scudcloud.py
index 5654f59..fcf98fe 100755
--- a/scudcloud-1.0/lib/scudcloud.py
+++ b/scudcloud-1.0/lib/scudcloud.py
@@ -208,7 +208,8 @@ class ScudCloud(QtGui.QMainWindow):
viewMenu.addAction(self.menus["view"]["reset"])
viewMenu.addSeparator()
viewMenu.addAction(self.menus["view"]["fullscreen"])
- viewMenu.addAction(self.menus["view"]["hidemenu"])
+ if Unity is None:
+ viewMenu.addAction(self.menus["view"]["hidemenu"])
helpMenu = menu.addMenu("&Help")
helpMenu.addAction(self.menus["help"]["help"])
helpMenu.addAction(self.menus["help"]["center"])
diff --git a/scudcloud-1.0/lib/systray.py b/scudcloud-1.0/lib/systray.py
index 2bf397d..68b7600 100644
--- a/scudcloud-1.0/lib/systray.py
+++ b/scudcloud-1.0/lib/systray.py
@@ -1,5 +1,6 @@
from PyQt4 import QtCore, QtGui
from resources import Resources
+import scudcloud
class Systray(QtGui.QSystemTrayIcon):
@@ -12,7 +13,8 @@ class Systray(QtGui.QSystemTrayIcon):
self.setToolTip(Resources.APP_NAME)
self.menu = QtGui.QMenu(self.window)
self.menu.addAction('Show', self.restore)
- self.menu.addAction('Toggle Menubar', self.toggleMenuBar)
+ if scudcloud.Unity is None:
+ self.menu.addAction('Toggle Menubar', self.toggleMenuBar)
self.menu.addSeparator()
self.menu.addAction(self.window.menus["file"]["preferences"])
self.menu.addAction(self.window.menus["help"]["about"])