From 09aa0b178e2d14cd385a585f0a762cf68a8ccbe6 Mon Sep 17 00:00:00 2001 From: Ivan Dmitrievich Yartsev Date: Wed, 25 Mar 2026 18:10:24 +0600 Subject: [PATCH] Fixed users loading --- source/ubinstall-gtk-log.c | 1 - source/ubinstall-gtk-users.c | 14 +++++++++++++- source/ubl-strings.h | 3 ++- 3 files changed, 15 insertions(+), 3 deletions(-) diff --git a/source/ubinstall-gtk-log.c b/source/ubinstall-gtk-log.c index e95831b..a9fee30 100644 --- a/source/ubinstall-gtk-log.c +++ b/source/ubinstall-gtk-log.c @@ -58,7 +58,6 @@ void yon_read_log(GFileMonitor *,GFile *,GFile *,GFileMonitorEvent ,log_window * gtk_text_buffer_get_end_iter(gtk_text_view_get_buffer(GTK_TEXT_VIEW(window->LogTextView)),&end_iter); gtk_text_buffer_delete(gtk_text_view_get_buffer(GTK_TEXT_VIEW(window->LogTextView)),&start_iter,&end_iter); gtk_text_buffer_set_text(gtk_text_view_get_buffer(GTK_TEXT_VIEW(window->LogTextView)),final,strlen(final)); - // gtk_label_set_text(GTK_LABEL(window->LogTextView),final); if (gtk_toggle_button_get_active(GTK_TOGGLE_BUTTON(window->ScrollToEndCheck))){ if (!window->timer_id){ window->timer_id = g_idle_add((GSourceFunc)yon_log_scroll,window); diff --git a/source/ubinstall-gtk-users.c b/source/ubinstall-gtk-users.c index e20f7b7..df8239c 100644 --- a/source/ubinstall-gtk-users.c +++ b/source/ubinstall-gtk-users.c @@ -137,9 +137,21 @@ void yon_user_init(main_window *widgets){ if (!main_config.configure_mode){ int size = 0; config_str users = yon_config_get_all_by_key(USERADD_parameter_search,&size); + for(int i=0;iUserRootPasswordCombo)); gtk_combo_box_text_append(GTK_COMBO_BOX_TEXT(widgets->UserRootPasswordCombo),NULL,DEFAULT_LABEL); diff --git a/source/ubl-strings.h b/source/ubl-strings.h index 07bed9d..3d93fd7 100644 --- a/source/ubl-strings.h +++ b/source/ubl-strings.h @@ -151,7 +151,8 @@ NULL) #define CONFIGURATION_SAVE_LABEL _("You can safely exit configurator or return and create new configuration file.") #define SCROLL_TO_END_LABEL _("Scroll to the end") -#define ADMINISTRATOR_LABEL _("Administrator") +#define ADMINISTRATOR_LABEL _("Empty default user") +// #define ADMINISTRATOR_LABEL _("Administrator") #define DEFAULT_LOCALES_LABEL _("English, U.S.A.; Russian, Russia") #define READ_INSTALL_LOG_LABEL _("Read installation log")