X-Git-Url: https://glassweightruler.freedombox.rocks/gitweb/Ventoy.git/blobdiff_plain/72d0fd0dd42604afad158b6d1e12736b5268532a..c896c03efed5a89bc3405f89e3ea60e00f841af3:/LinuxGUI/Ventoy2Disk/GTK/ventoy_gtk.c diff --git a/LinuxGUI/Ventoy2Disk/GTK/ventoy_gtk.c b/LinuxGUI/Ventoy2Disk/GTK/ventoy_gtk.c index a1ef3dc..a1e8198 100644 --- a/LinuxGUI/Ventoy2Disk/GTK/ventoy_gtk.c +++ b/LinuxGUI/Ventoy2Disk/GTK/ventoy_gtk.c @@ -262,7 +262,7 @@ void on_devlist_changed(GtkWidget *widget, gpointer data) } else { - if (g_secure_boot_support) + if (!g_secure_boot_support) { gtk_check_menu_item_set_active(g_menu_item_secure_boot, 1 - g_secure_boot_support); } @@ -936,7 +936,7 @@ void on_part_cfg_ok(GtkWidget *widget, gpointer data) for (pos = input; *pos; pos++) { - if (*pos < '0' || *pos >= '9') + if (*pos < '0' || *pos > '9') { msgbox(GTK_MESSAGE_ERROR, GTK_BUTTONS_OK, "STR_SPACE_VAL_INVALID"); return; @@ -1111,6 +1111,8 @@ void on_init_window(GtkBuilder *pBuilder) add_accelerator(agMain, g_update_button, "clicked", GDK_KEY_u); add_accelerator(agMain, g_refresh_button, "clicked", GDK_KEY_r); + gtk_check_menu_item_set_active(g_menu_item_secure_boot, 1 - g_secure_boot_support); + fill_dev_list(NULL); return;