From 6f7445be18a0a75b37e1a9c22d60dc7d9c7b32ce Mon Sep 17 00:00:00 2001 From: JohnTheCoolingFan Date: Mon, 23 Jan 2023 09:35:55 +0300 Subject: [PATCH] [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 --- deluge/plugins/Label/deluge_label/gtkui/submenu.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/deluge/plugins/Label/deluge_label/gtkui/submenu.py b/deluge/plugins/Label/deluge_label/gtkui/submenu.py index ba9324b3d..54b659429 100644 --- a/deluge/plugins/Label/deluge_label/gtkui/submenu.py +++ b/deluge/plugins/Label/deluge_label/gtkui/submenu.py @@ -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()