Bug fix: Keep showing channel modes in advanced mode on theme change
This commit is contained in:
parent
5c07e55194
commit
3eb0da7e4f
1 changed files with 4 additions and 1 deletions
3
memos.py
3
memos.py
|
@ -509,6 +509,9 @@ class PesterMemo(PesterConvo):
|
||||||
self.setWindowIcon(PesterIcon(theme["memos/memoicon"]))
|
self.setWindowIcon(PesterIcon(theme["memos/memoicon"]))
|
||||||
|
|
||||||
t = Template(theme["memos/label/text"])
|
t = Template(theme["memos/label/text"])
|
||||||
|
if self.mainwindow.advanced and hasattr(self, 'modes'):
|
||||||
|
self.channelLabel.setText(t.safe_substitute(channel=self.channel) + "(%s)" % (self.modes))
|
||||||
|
else:
|
||||||
self.channelLabel.setText(t.safe_substitute(channel=self.channel))
|
self.channelLabel.setText(t.safe_substitute(channel=self.channel))
|
||||||
self.channelLabel.setStyleSheet(theme["memos/label/style"])
|
self.channelLabel.setStyleSheet(theme["memos/label/style"])
|
||||||
self.channelLabel.setAlignment(self.aligndict["h"][theme["memos/label/align/h"]] | self.aligndict["v"][theme["memos/label/align/v"]])
|
self.channelLabel.setAlignment(self.aligndict["h"][theme["memos/label/align/h"]] | self.aligndict["v"][theme["memos/label/align/v"]])
|
||||||
|
|
Loading…
Reference in a new issue