Fix hiding unavailable source rows

This commit is contained in:
GeoffreyCoulaud
2023-07-01 18:27:11 +02:00
parent 75a5255806
commit 0c6cfc14f0

View File

@@ -143,7 +143,7 @@ class PreferencesWindow(Adw.PreferencesWindow):
source = source_class()
if not source.is_available:
expander_row = getattr(self, f"{source.id}_expander_row")
expander_row.remove()
expander_row.set_visible(False)
else:
self.init_source_row(source)