diff options
-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 321d640..5765450 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -2789,6 +2789,10 @@ static gboolean on_click_switch_to_new_ui(GtkButton*, gpointer) { return true; } + config.main_config.use_new_ui = true; + config.main_config.installed_gsr_global_hotkeys_version = GSR_CURRENT_GLOBAL_HOTKEYS_CODE_VERSION; + save_configs(); + bool service_install_successful = (system("flatpak-spawn --host -- pkexec rm /usr/lib/systemd/user/gpu-screen-recorder-ui.service") <= 1); service_install_successful &= (system( "data_home=$(flatpak-spawn --host -- /bin/sh -c 'echo \"${XDG_DATA_HOME:-$HOME/.local/share}\"') && " @@ -2803,10 +2807,6 @@ static gboolean on_click_switch_to_new_ui(GtkButton*, gpointer) { gtk_widget_destroy(dialog); } - config.main_config.use_new_ui = true; - config.main_config.installed_gsr_global_hotkeys_version = GSR_CURRENT_GLOBAL_HOTKEYS_CODE_VERSION; - save_configs(); - if(!service_install_successful) launch_gsr_ui(true); |