diff options
author | dec05eba <dec05eba@protonmail.com> | 2024-12-29 21:27:54 +0100 |
---|---|---|
committer | dec05eba <dec05eba@protonmail.com> | 2024-12-29 21:27:54 +0100 |
commit | 1dd7ed9f413f637eddf63a26542f9615c435a1d0 (patch) | |
tree | b5f4f1bdeb39fa5554ee164fc07ef43efd7bbfd5 | |
parent | 7a8d41ebe89c6173b81975d935fbdc9c553081ea (diff) |
Fix use-old-ui option not working, wrong save_config5.0.0
-rw-r--r-- | src/main.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/main.cpp b/src/main.cpp index b4543de..97820fd 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -4432,7 +4432,7 @@ static void startup_new_ui(bool launched_by_daemon) { gtk_widget_destroy(dialog); config.main_config.use_new_ui = false; - save_configs(); + save_config(config); return; } } @@ -4451,7 +4451,7 @@ static void startup_new_ui(bool launched_by_daemon) { case GTK_RESPONSE_NO: default: { config.main_config.use_new_ui = false; - save_configs(); + save_config(config); return; } } @@ -4469,7 +4469,7 @@ static void startup_new_ui(bool launched_by_daemon) { config.main_config.use_new_ui = true; config.main_config.installed_gsr_global_hotkeys_version = GSR_CURRENT_GLOBAL_HOTKEYS_CODE_VERSION; - save_configs(); + save_config(config); } launch_gsr_ui(!launched_by_daemon); @@ -4496,7 +4496,7 @@ int main(int argc, char **argv) { if(use_old_ui_opt) { system("flatpak-spawn --host -- systemctl disable --user gpu-screen-recorder-ui"); config.main_config.use_new_ui = false; - save_configs(); + save_config(config); } if(config.main_config.use_new_ui) |