Test fix for missing main components in list

pull/238/head
parent bf84c6db56
commit 94ccd8f4bd

@ -207,6 +207,10 @@ gboolean yon_spinner_switch_off(GtkSpinner *target){
return G_SOURCE_REMOVE; return G_SOURCE_REMOVE;
} }
void yon_modules_missed_func(main_window *widgets){
yon_ubl_status_box_spawn(GTK_CONTAINER(widgets->StatusBox),MAIN_COMPONENTS_NOT_FOUND_LABEL,5,BACKGROUND_IMAGE_FAIL_TYPE);
}
void *yon_os_components_setup(main_window *widgets){ void *yon_os_components_setup(main_window *widgets){
int base_size; int base_size;
config_str base = yon_config_load(get_modules_command,&base_size); config_str base = yon_config_load(get_modules_command,&base_size);
@ -223,6 +227,10 @@ void *yon_os_components_setup(main_window *widgets){
g_idle_add((GSourceFunc)yon_os_component_insert,row); g_idle_add((GSourceFunc)yon_os_component_insert,row);
} }
g_idle_add((GSourceFunc)yon_spinner_switch_off,widgets->OSSpinner); g_idle_add((GSourceFunc)yon_spinner_switch_off,widgets->OSSpinner);
if (!base_size){
g_idle_add_once((GSourceOnceFunc)yon_modules_missed_func,widgets);
return NULL;
}
yon_char_parsed_free(base,base_size); yon_char_parsed_free(base,base_size);
return NULL; return NULL;
} }

@ -1524,4 +1524,5 @@ config_str yon_os_components_get_modules(int *size);
int yon_os_components_check_packages_size(GtkWidget *, main_window *widgets); int yon_os_components_check_packages_size(GtkWidget *, main_window *widgets);
void on_pacman_search_enter(GtkEntry *self, main_window *widgets); void on_pacman_search_enter(GtkEntry *self, main_window *widgets);
gboolean yon_log_scroll(log_window *window); gboolean yon_log_scroll(log_window *window);
gboolean on_log_window_exit(GtkWidget *,GdkEvent*, log_window *window); gboolean on_log_window_exit(GtkWidget *,GdkEvent*, log_window *window);
void yon_modules_missed_func(main_window *widgets);

@ -577,3 +577,5 @@ For more information, visit our website the \"Support Levels\" section.")
#define slide_22_title _("Network Boot") #define slide_22_title _("Network Boot")
#define slide_22_text _("Allows system booting for diskless and standard workstations over a local network or the Internet (even over slow connection channels).") #define slide_22_text _("Allows system booting for diskless and standard workstations over a local network or the Internet (even over slow connection channels).")
#define MAIN_COMPONENTS_NOT_FOUND_LABEL _("Main components does not found. Proceed back to installation type selection page and use \"Select sources\" button from below")
Loading…
Cancel
Save