[Lable] Fix label display name in submenu
Previously every '_' in label's name was incorrectly replaced by '__' Closes: https://github.com/deluge-torrent/deluge/pull/410
This commit is contained in:
parent
fb30478123
commit
6f7445be18
|
@ -51,7 +51,7 @@ class LabelMenu(MenuItem):
|
|||
if label == NO_LABEL:
|
||||
item = MenuItem(_(NO_LABEL)) # noqa: F821
|
||||
else:
|
||||
item = MenuItem(label.replace('_', '__'))
|
||||
item = MenuItem(label)
|
||||
item.connect('activate', self.on_select_label, label)
|
||||
self.sub_menu.append(item)
|
||||
self.show_all()
|
||||
|
|
Loading…
Reference in New Issue