const string UI_FILE = BuildConfig.DATA_DIR + "/rygel-preferences.ui";
const string DIALOG = "preferences-dialog";
+ UserConfig config;
Builder builder;
Dialog dialog;
ArrayList<PreferencesSection> sections;
public PreferencesDialog () throws Error {
- var config = UserConfig.get_default ();
+ this.config = UserConfig.get_default ();
this.builder = new Builder ();
assert (this.dialog != null);
this.sections = new ArrayList<PreferencesSection> ();
- this.sections.add (new GeneralPrefSection (this.builder, config));
- this.sections.add (new TrackerPrefSection (this.builder,
- config));
+ this.sections.add (new GeneralPrefSection (this.builder, this.config));
+ this.sections.add (new TrackerPrefSection (this.builder, this.config));
this.sections.add (new MediaExportPrefSection (this.builder,
- config));
+ this.config));
}
public void run () {
foreach (var section in this.sections) {
section.save ();
}
+
+ this.config.save ();
}
public static int main (string[] args) {