diff --git a/source/ubl-settings-services.c b/source/ubl-settings-services.c index 79a2282..b08a248 100644 --- a/source/ubl-settings-services.c +++ b/source/ubl-settings-services.c @@ -484,7 +484,13 @@ void on_system_launch_clicked(GtkWidget *self, char *path, main_window *widgets) if (size>0&&!strcmp(result[0],"active")){ 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); + result = yon_config_load(service_check_active_command(service_name),&size); + yon_char_remove_last_symbol(result[0],'\n'); + if (strcmp(result[0],"active")){ + gtk_list_store_set(GTK_LIST_STORE(model),&iter,4,0,-1); + } else { + yon_ubl_status_box_render(SERVICE_STOP_FAILED_LABEL,BACKGROUND_IMAGE_FAIL_TYPE); + } } } @@ -1326,7 +1332,11 @@ gboolean yon_interface_update(main_window *widgets){ void on_interface_update(GtkWidget *self, main_window *widgets){ if (self){}; - yon_interface_update(widgets); + if (!main_config.update_thread_active){ + main_config.update_thread_active=1; + pthread_t tid; + pthread_create(&tid,NULL,(void*)(void*)((yon_interface_update)),widgets); + } } void on_column_resize(GtkTreeViewColumn *self,GParamSpec *pspec,main_window *widgets){ diff --git a/ubl-settings-services.glade b/ubl-settings-services.glade index 9179b53..a42ca15 100644 --- a/ubl-settings-services.glade +++ b/ubl-settings-services.glade @@ -155,6 +155,11 @@ False com.ublinux.ubl-settings-services.properties-symbolic + + True + False + com.ublinux.ubl-settings-services.sync-symbolic + True False @@ -393,12 +398,12 @@ vertical 5 - + True True True - Relaunch with new configuration - image1 + Update + image6 @@ -410,15 +415,9 @@ - + True - True - True - Reexec systemd - image8 - + False False @@ -427,9 +426,15 @@ - + True - False + True + True + Relaunch with new configuration + image1 + False @@ -438,12 +443,12 @@ - + True True True - Update - image6 + Reexec systemd + image8 @@ -454,6 +459,17 @@ 3 + + + True + False + + + False + True + 4 + + True @@ -469,7 +485,7 @@ False True - 4 + 5 @@ -487,7 +503,7 @@ False True - 5 + 6 @@ -505,7 +521,7 @@ False True - 6 + 7 @@ -523,7 +539,7 @@ False True - 7 + 8 @@ -534,7 +550,7 @@ False True - 8 + 9 @@ -559,7 +575,7 @@ False True - 9 + 10 @@ -968,12 +984,12 @@ vertical 5 - + True True True - Relaunch with new configuration - image13 + Update + image2 @@ -985,15 +1001,9 @@ - + True - True - True - Reexec systemd - image14 - + False False @@ -1002,9 +1012,15 @@ - + True - False + True + True + Relaunch with new configuration + image13 + False @@ -1013,12 +1029,12 @@ - + True True True - Update - image2 + Reexec systemd + image14 @@ -1029,6 +1045,17 @@ 3 + + + True + False + + + False + True + 4 + + True @@ -1044,7 +1071,7 @@ False True - 4 + 5 @@ -1062,7 +1089,7 @@ False True - 5 + 6 @@ -1080,7 +1107,7 @@ False True - 6 + 7 @@ -1098,7 +1125,7 @@ False True - 7 + 8 @@ -1109,7 +1136,7 @@ False True - 8 + 9 @@ -1134,7 +1161,7 @@ False True - 9 + 10 @@ -1582,6 +1609,34 @@ False vertical 5 + + + True + True + True + Restart session + image19 + + + + False + True + 0 + + + + + True + False + + + False + True + 1 + + True @@ -1596,7 +1651,7 @@ False True - 0 + 2 @@ -1613,7 +1668,7 @@ False True - 1 + 3 @@ -1630,7 +1685,7 @@ False True - 2 + 4 @@ -1787,9 +1842,7 @@ True TimersList - - none - +