ExifUIList[i].current = ExifUIList[i].default_value;
}
-static void exit_program_final(void)
+static void sync_options_with_current_state(void)
{
- gchar *path;
- gchar *pathl;
LayoutWindow *lw = NULL;
- remote_close(remote_connection);
-
- collect_manager_flush();
-
if (layout_valid(&lw))
{
options->layout.main_window.maximized = window_maximized(lw->window);
g_free(options->startup.path);
options->startup.path = g_strdup(layout_get_path(NULL));
}
+}
+
+static void exit_program_final(void)
+{
+ gchar *path;
+ gchar *pathl;
+
+ remote_close(remote_connection);
+
+ collect_manager_flush();
+ sync_options_with_current_state();
save_options();
keys_save();