aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2024-12-31 17:43:04 +0100
committerdec05eba <dec05eba@protonmail.com>2024-12-31 17:43:04 +0100
commitf7c52a3cb2653676038b7d294dd7000e7af9e9aa (patch)
tree0cf025be927b27e990d1520dac200a61304b5085 /src
parentcddf3eac2caf831d3a5e8519d396f67cefc520c0 (diff)
Cant bother to write a message
Diffstat (limited to 'src')
-rw-r--r--src/main.cpp8
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);