From d169aca8bd512f046fc3d30829b2d54c139654d0 Mon Sep 17 00:00:00 2001 From: DjLegolas Date: Mon, 16 Oct 2017 14:15:17 +0300 Subject: [PATCH] [Notifications]Fix no text in tab list The tab in the Preferences window is created and clickable - only the text is missing. --- .../Notifications/deluge/plugins/notifications/gtkui.py | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/deluge/plugins/Notifications/deluge/plugins/notifications/gtkui.py b/deluge/plugins/Notifications/deluge/plugins/notifications/gtkui.py index 916b20a2a..cacca7ed4 100644 --- a/deluge/plugins/Notifications/deluge/plugins/notifications/gtkui.py +++ b/deluge/plugins/Notifications/deluge/plugins/notifications/gtkui.py @@ -263,12 +263,7 @@ class GtkUI(GtkPluginBase, GtkUiNotifications): 'on_sound_path_update_preview': self.on_sound_path_update_preview }) - prefs = component.get('Preferences') - parent = self.prefs.get_parent() - if parent: - parent.remove(self.prefs) - index = prefs.notebook.append_page(self.prefs) - prefs.liststore.append([index, _('Notifications')]) + component.get('Preferences').add_page(_('Notifications'), self.prefs) component.get('PluginManager').register_hook('on_apply_prefs', self.on_apply_prefs)