mirror of
https://git.deluge-torrent.org/deluge
synced 2025-08-02 22:48:40 +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
1 changed files with 1 additions and 6 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue