]> glassweightruler.freedombox.rocks Git - Ventoy.git/blobdiff - LinuxGUI/Ventoy2Disk/GTK/ventoy_gtk.c
Update the F1 help text. WIMBOOT mode supports both Windows and WinPE ISO files.
[Ventoy.git] / LinuxGUI / Ventoy2Disk / GTK / ventoy_gtk.c
index a1ef3dc281ddba43cb2eb1fc68b77ba7779c5c69..a1e81988126d1a33409d13d2931554f1b8fa2b59 100644 (file)
@@ -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;