refactor: route exit saves through FE persistence wrapper; keep text mode simple

This commit is contained in:
2026-03-17 10:07:34 -06:00
parent 592d74e788
commit 0155b07c9d
4 changed files with 50 additions and 2 deletions

View File

@@ -581,6 +581,19 @@ fe_exit (void)
g_main_loop_quit(main_loop);
}
fe_preferences_save_result
fe_preferences_persistence_save_all (void)
{
fe_preferences_save_result result;
result.success = save_config () != 0;
result.partial_failure = FALSE;
result.config_failed = !result.success;
result.theme_failed = FALSE;
return result;
}
void
fe_new_server (struct server *serv)
{