From f7c52a3cb2653676038b7d294dd7000e7af9e9aa Mon Sep 17 00:00:00 2001 From: dec05eba Date: Tue, 31 Dec 2024 17:43:04 +0100 Subject: Cant bother to write a message --- src/main.cpp | 8 ++++---- 1 file 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); -- cgit v1.2.3