From ec3f30e141203c08d3b7aa24415cebb504076e79 Mon Sep 17 00:00:00 2001 From: Ivan Yarcev Date: Mon, 2 Dec 2024 11:26:08 +0600 Subject: [PATCH] Package updates together with module --- source/ubl-settings-kernel.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/source/ubl-settings-kernel.c b/source/ubl-settings-kernel.c index c2633b5..516392c 100644 --- a/source/ubl-settings-kernel.c +++ b/source/ubl-settings-kernel.c @@ -538,7 +538,9 @@ void on_module_install_accept(GtkWidget *, dictionary *dict){ free(dict->first->next->next); dict->first->next->next = NULL; char *module_formated = yon_package_string_set(tab->module); - char *modules_to_install = module_formated; + char *modules_to_install = NULL; + if (!tab->module_updated) modules_to_install = yon_char_unite(module_formated, " ", yon_package_string_set(tab->package), NULL); + else modules_to_install = module_formated; GtkTreeIter iter; for_iter (GTK_TREE_MODEL(window->liststore1),&iter){