Commit eb1737a4 authored by Philipp Hörist's avatar Philipp Hörist

PopoverSettings: Bind current label to setting

parent 4cbd71d3
Pipeline #6258 passed with stages
in 3 minutes and 54 seconds
......@@ -565,8 +565,18 @@ class PopoverSetting(GenericSetting):
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}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment