Quiet Mode (i.e. turn off notification) in tray menu #1070
|
@ -864,6 +864,12 @@ class MyForm(settingsmixin.SMainWindow):
|
||||||
self.actionShow.setChecked(False)
|
self.actionShow.setChecked(False)
|
||||||
self.appIndicatorShowOrHideWindow()
|
self.appIndicatorShowOrHideWindow()
|
||||||
|
|
||||||
|
def appIndicatorSwitchQuietMode(self):
|
||||||
|
BMConfigParser().set(
|
||||||
|
'bitmessagesettings', 'showtraynotifications',
|
||||||
|
str(not self.actionQuiet.isChecked())
|
||||||
|
)
|
||||||
|
|
||||||
# application indicator show or hide
|
# application indicator show or hide
|
||||||
"""# application indicator show or hide
|
"""# application indicator show or hide
|
||||||
def appIndicatorShowBitmessage(self):
|
def appIndicatorShowBitmessage(self):
|
||||||
|
@ -1157,6 +1163,14 @@ class MyForm(settingsmixin.SMainWindow):
|
||||||
if not sys.platform[0:3] == 'win':
|
if not sys.platform[0:3] == 'win':
|
||||||
m.addAction(self.actionShow)
|
m.addAction(self.actionShow)
|
||||||
|
|
||||||
|
# quiet mode
|
||||||
|
self.actionQuiet = QtGui.QAction(_translate(
|
||||||
|
"MainWindow", "Quiet Mode"), m, checkable=True)
|
||||||
|
self.actionQuiet.setChecked(not BMConfigParser().getboolean(
|
||||||
|
'bitmessagesettings', 'showtraynotifications'))
|
||||||
|
self.actionQuiet.triggered.connect(self.appIndicatorSwitchQuietMode)
|
||||||
|
m.addAction(self.actionQuiet)
|
||||||
|
|
||||||
# Send
|
# Send
|
||||||
actionSend = QtGui.QAction(_translate(
|
actionSend = QtGui.QAction(_translate(
|
||||||
"MainWindow", "Send"), m, checkable=False)
|
"MainWindow", "Send"), m, checkable=False)
|
||||||
|
|
Reference in New Issue
Block a user