From 28255bf50e50a0ccd51b7de856b9e30eefc21a35 Mon Sep 17 00:00:00 2001 From: Ivan Yarcev Date: Fri, 4 Apr 2025 11:26:59 +0600 Subject: [PATCH] Fixed kernel launching --- source/ubl-settings-kernel.c | 2 ++ source/ubl-strings.h | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/source/ubl-settings-kernel.c b/source/ubl-settings-kernel.c index d1b0cf6..5e644d4 100644 --- a/source/ubl-settings-kernel.c +++ b/source/ubl-settings-kernel.c @@ -267,6 +267,8 @@ gboolean yon_tab_create_tags(kernels_tab *tab){ else if (launched&&(strcmp(tab->package,launched))&&(boot_run&&boot_run[0]&&!strcmp(tab->package,boot_run[0]))){ gtk_widget_show(tab->launch_button); yon_tag_add(GTK_BOX(tab->install_tags_box),RUNNING_LABEL,"tag_green",NULL); + } else if (!launched){ + gtk_widget_show(tab->launch_button); } else { gtk_widget_hide(tab->launch_button); if(!getuid()){ diff --git a/source/ubl-strings.h b/source/ubl-strings.h index ae58045..fe62e08 100644 --- a/source/ubl-strings.h +++ b/source/ubl-strings.h @@ -78,7 +78,7 @@ #define ADDITION_PACKAGE_UPDATE_CONFIRMATION_LABEL(target) yon_char_unite(_("Are you sure want to update kernel addition package")," ",target,"?",NULL) #define ADDITION_MODULE_REMOVE_CONFIRMATION_LABEL(target) yon_char_unite(_("Are you sure want to remove kernel addition module")," ",target,"?",NULL) #define ADDITION_PACKAGE_REMOVE_CONFIRMATION_LABEL(target) yon_char_unite(_("Are you sure want to remove kernel addition package")," ",target,"?",NULL) -#define LAUNCH_CONFIRMATION_LABEL(target) yon_char_unite(_("Are you sure want to launch")," ",target," ",_("for boot?\n\nChanges will be applied after system restart"),NULL) +#define LAUNCH_CONFIRMATION_LABEL(target) yon_char_unite(_("Are you sure want to launch")," ",target," ",_("for boot?\n\nChanges will be applied after system restart"),NULL) #define UPDATE_MODULE_LABEL _("Update module") #define UPDATE_PACKAGE_LABEL _("Update package")