From 37c41b4c0a9f94d07916cfdebbba89f57befe795 Mon Sep 17 00:00:00 2001 From: Ivan Yarcev Date: Thu, 11 Apr 2024 12:56:33 +0600 Subject: [PATCH] Launch check removal at action cancelation fix --- source/ubl-settings-services.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/source/ubl-settings-services.c b/source/ubl-settings-services.c index d65a3c6..6b36bc3 100644 --- a/source/ubl-settings-services.c +++ b/source/ubl-settings-services.c @@ -472,11 +472,10 @@ void on_system_launch_clicked(GtkWidget *self, char *path, main_window *widgets) config_str result = yon_config_load(service_check_active_command(service_name),&size); yon_char_remove_last_symbol(result[0],'\n'); if (size>0&&!strcmp(result[0],"active")){ - if (yon_confirmation_dialog_call(widgets->Window,data)==GTK_RESPONSE_ACCEPT){ + int responce = yon_confirmation_dialog_call(widgets->Window,data); + if (responce == GTK_RESPONSE_ACCEPT){ gtk_list_store_set(GTK_LIST_STORE(model),&iter,4,0,-1); - } else { - gtk_list_store_set(GTK_LIST_STORE(model),&iter,4,0,-1); } } yon_char_parsed_free(result,size);