mirror of
https://github.com/Rafostar/clapper.git
synced 2025-08-30 16:02:00 +02:00
prefs: Fix expander rows compat with latest libadwaita
This commit is contained in:
11
src/prefs.js
11
src/prefs.js
@@ -440,8 +440,15 @@ class ClapperPrefsPluginExpander extends Adw.ExpanderRow
|
|||||||
const featuresNames = Object.keys(pluginsData[this.title]);
|
const featuresNames = Object.keys(pluginsData[this.title]);
|
||||||
debug(`Adding ${featuresNames.length} features to the list of plugin: ${this.title}`);
|
debug(`Adding ${featuresNames.length} features to the list of plugin: ${this.title}`);
|
||||||
|
|
||||||
for(let featureObj of pluginsData[this.title])
|
for(let featureObj of pluginsData[this.title]) {
|
||||||
this.add(new PrefsPluginFeature(featureObj));
|
const prefsPluginFeature = new PrefsPluginFeature(featureObj);
|
||||||
|
|
||||||
|
/* TODO: Remove old libadwaita compat */
|
||||||
|
if(this.add_row)
|
||||||
|
this.add_row(prefsPluginFeature);
|
||||||
|
else
|
||||||
|
this.add(prefsPluginFeature);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user