mirror of
https://github.com/codex-storage/deluge.git
synced 2025-01-12 04:24:27 +00:00
[Notifications]Fix no text in tab list
The tab in the Preferences window is created and clickable - only the text is missing.
This commit is contained in:
parent
26720ca4c2
commit
d169aca8bd
@ -263,12 +263,7 @@ class GtkUI(GtkPluginBase, GtkUiNotifications):
|
|||||||
'on_sound_path_update_preview': self.on_sound_path_update_preview
|
'on_sound_path_update_preview': self.on_sound_path_update_preview
|
||||||
})
|
})
|
||||||
|
|
||||||
prefs = component.get('Preferences')
|
component.get('Preferences').add_page(_('Notifications'), self.prefs)
|
||||||
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('PluginManager').register_hook('on_apply_prefs',
|
component.get('PluginManager').register_hook('on_apply_prefs',
|
||||||
self.on_apply_prefs)
|
self.on_apply_prefs)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user