- XMLNode node (X_("ExportFile"));
- node.add_property ("analyze-audio", analysis_button.get_active () ? "yes" : "no");
- node.add_property ("soundcloud-upload", soundcloud_upload_button.get_active () ? "yes" : "no");
- Config->add_instant_xml (node);
-}
-
-void
-ExportFileNotebook::FilePage::restore_state ()
-{
- XMLNode* node = Config->instant_xml (X_("ExportFile"));
-
- if (!node) {
- return;
- }
-
- XMLProperty const* prop;
-
- if ((prop = node->property ("analyze-audio")) != 0) {
- analysis_button.set_active (string_is_affirmative (prop->value()));
- }
-
- if ((prop = node->property ("soundcloud-upload")) != 0) {
- soundcloud_upload_button.set_active (string_is_affirmative (prop->value()));
- }