Skip to content
Snippets Groups Projects
Commit eb1737a4 authored by Philipp Hörist's avatar Philipp Hörist
Browse files

PopoverSettings: Bind current label to setting

parent 4cbd71d3
No related branches found
No related tags found
No related merge requests found
......@@ -565,8 +565,18 @@ def __init__(self, *args, entries):
self._current_label.set_text(entries.get(self.setting_value, ''))
self._bind_label()
self.show_all()
def _bind_label(self):
if self.type_ not in (SettingType.CONFIG, SettingType.ACCOUNT_CONFIG):
return
app.settings.bind_signal(self.value,
self._current_label,
'set_text')
def _add_menu_entries(self, entries):
if isinstance(entries, list):
entries = {key: key for key in entries}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment