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
5
memos.py
5
memos.py
|
@ -509,7 +509,10 @@ 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"])
|
||||||
self.channelLabel.setText(t.safe_substitute(channel=self.channel))
|
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.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"]])
|
||||||
self.channelLabel.setMaximumHeight(theme["memos/label/maxheight"])
|
self.channelLabel.setMaximumHeight(theme["memos/label/maxheight"])
|
||||||
|
|
Loading…
Reference in a new issue