From ff1fd2476b84122dca721d6978ad3833ccb810ed Mon Sep 17 00:00:00 2001 From: Ivan Dmitrievich Yartsev Date: Thu, 2 Apr 2026 10:52:17 +0600 Subject: [PATCH] Fixed autostart services and apps saving and loading --- source/ubinstall-gtk-startup-apps.c | 6 +++--- ubinstall-gtk-service-window.glade | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/source/ubinstall-gtk-startup-apps.c b/source/ubinstall-gtk-startup-apps.c index a78ed37..1f02074 100644 --- a/source/ubinstall-gtk-startup-apps.c +++ b/source/ubinstall-gtk-startup-apps.c @@ -103,7 +103,7 @@ void yon_startup_apps_init(main_window *widgets){ if (parsed_size&&parsed){ for (int i=0;iStartupAppsList,&iter); - gtk_list_store_set(widgets->StartupAppsList,&iter,0,1,2,parsed[i],4,1,-1); + gtk_list_store_set(widgets->StartupAppsList,&iter,0,1,1,parsed[i],4,1,-1); } } yon_char_parsed_free(parsed,parsed_size); @@ -123,7 +123,7 @@ void on_startup_app_add_accept(GtkWidget *self, main_window *widgets){ } GtkTreeIter iter; gtk_list_store_append(widgets->StartupAppsList,&iter); - gtk_list_store_set(widgets->StartupAppsList,&iter,0,1,1,unit,2,app,3,description,4,1,-1); + gtk_list_store_set(widgets->StartupAppsList,&iter,0,1,1,app,2,unit,3,description,4,1,-1); on_subwindow_close(self); } @@ -203,7 +203,7 @@ int yon_startup_app_save(main_window *widgets){ list_size++; char *target; int status; - gtk_tree_model_get(model,&iter,0,&status,2,&target,-1); + gtk_tree_model_get(model,&iter,0,&status,1,&target,-1); if (status){ yon_char_parsed_add_or_create_if_exists(modules,&size,target); } diff --git a/ubinstall-gtk-service-window.glade b/ubinstall-gtk-service-window.glade index c311996..99d90b5 100644 --- a/ubinstall-gtk-service-window.glade +++ b/ubinstall-gtk-service-window.glade @@ -55,7 +55,7 @@ False 5 - + True False Service: @@ -91,7 +91,7 @@ False 5 - + True False Unit: