[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:
JohnTheCoolingFan 2023-01-23 09:35:55 +03:00 committed by Calum Lind
parent fb30478123
commit 6f7445be18
No known key found for this signature in database
GPG Key ID: 90597A687B836BA3
1 changed files with 1 additions and 1 deletions

View File

@ -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()