mirror of
https://github.com/codex-storage/deluge.git
synced 2025-01-11 03:55:43 +00:00
[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:
|
if label == NO_LABEL:
|
||||||
item = MenuItem(_(NO_LABEL)) # noqa: F821
|
item = MenuItem(_(NO_LABEL)) # noqa: F821
|
||||||
else:
|
else:
|
||||||
item = MenuItem(label.replace('_', '__'))
|
item = MenuItem(label)
|
||||||
item.connect('activate', self.on_select_label, label)
|
item.connect('activate', self.on_select_label, label)
|
||||||
self.sub_menu.append(item)
|
self.sub_menu.append(item)
|
||||||
self.show_all()
|
self.show_all()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user