From 48776c7113438fe63f6a7aec31d62f2068571e9e Mon Sep 17 00:00:00 2001 From: Ivan Dmitrievich Yartsev Date: Tue, 28 Apr 2026 14:07:35 +0600 Subject: [PATCH] Returned advanced loading from another modes --- source/ubinstall-gtk-advanced.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/source/ubinstall-gtk-advanced.c b/source/ubinstall-gtk-advanced.c index e03bd32..69719f1 100644 --- a/source/ubinstall-gtk-advanced.c +++ b/source/ubinstall-gtk-advanced.c @@ -707,7 +707,9 @@ void yon_advanced_init(main_window *widgets){ GList *iter; for (iter=list;iter;iter=iter->next){ advanced_part_widgets *part = g_object_get_data(G_OBJECT(iter->data),"advanced_part_widgets"); - on_advanced_part_remove_part(part->RemoveButton,widgets); + // on_advanced_part_remove_part(part->RemoveButton,widgets); + free(part); + gtk_widget_destroy(iter->data); } gtk_list_store_clear(widgets->PartitionsList); yon_devices_setup(widgets); @@ -726,7 +728,7 @@ void yon_advanced_init(main_window *widgets){ yon_char_parsed_free(vmf_file,size); g_signal_handlers_unblock_by_func(G_OBJECT(widgets->AdvancedVirtualDeviceCombo),G_CALLBACK(on_advanced_virtual_device_changed),widgets); char *install_mode = config(AUTOINSTALL_TYPE_INSTALL); - if (!yon_char_is_empty(install_mode)&&!strcmp(install_mode,"custom")){ + if (!yon_char_is_empty(install_mode)){ // &&!strcmp(install_mode,"custom") advanced_part_data *data1 = yon_advanced_get_config_data(0); advanced_part_data *data2 = yon_advanced_get_config_data(1); yon_advanced_part_select_for_data(data1,widgets);