From: longpanda Date: Sun, 12 Jun 2022 09:18:56 +0000 (+0800) Subject: Enable secure boot support option by default. X-Git-Tag: v1.0.76~1 X-Git-Url: https://glassweightruler.freedombox.rocks/gitweb/Ventoy.git/commitdiff_plain/23bd2d24e942b1a8806874171866cf5273917a15 Enable secure boot support option by default. --- diff --git a/INSTALL/Ventoy2Disk.exe b/INSTALL/Ventoy2Disk.exe index 9a8078b..616aea3 100644 Binary files a/INSTALL/Ventoy2Disk.exe and b/INSTALL/Ventoy2Disk.exe differ diff --git a/INSTALL/Ventoy2Disk_ARM.exe b/INSTALL/Ventoy2Disk_ARM.exe index ae30e8b..f72d179 100644 Binary files a/INSTALL/Ventoy2Disk_ARM.exe and b/INSTALL/Ventoy2Disk_ARM.exe differ diff --git a/INSTALL/Ventoy2Disk_ARM64.exe b/INSTALL/Ventoy2Disk_ARM64.exe index 88c729e..d920a7f 100644 Binary files a/INSTALL/Ventoy2Disk_ARM64.exe and b/INSTALL/Ventoy2Disk_ARM64.exe differ diff --git a/INSTALL/Ventoy2Disk_X64.exe b/INSTALL/Ventoy2Disk_X64.exe index 002ead9..b1119fc 100644 Binary files a/INSTALL/Ventoy2Disk_X64.exe and b/INSTALL/Ventoy2Disk_X64.exe differ diff --git a/INSTALL/tool/aarch64/Ventoy2Disk.gtk3 b/INSTALL/tool/aarch64/Ventoy2Disk.gtk3 index 0d25154..ce77318 100644 Binary files a/INSTALL/tool/aarch64/Ventoy2Disk.gtk3 and b/INSTALL/tool/aarch64/Ventoy2Disk.gtk3 differ diff --git a/INSTALL/tool/aarch64/Ventoy2Disk.qt5 b/INSTALL/tool/aarch64/Ventoy2Disk.qt5 index 763408e..79eca77 100644 Binary files a/INSTALL/tool/aarch64/Ventoy2Disk.qt5 and b/INSTALL/tool/aarch64/Ventoy2Disk.qt5 differ diff --git a/INSTALL/tool/i386/Ventoy2Disk.gtk2 b/INSTALL/tool/i386/Ventoy2Disk.gtk2 index 4d2feab..c2d5184 100644 Binary files a/INSTALL/tool/i386/Ventoy2Disk.gtk2 and b/INSTALL/tool/i386/Ventoy2Disk.gtk2 differ diff --git a/INSTALL/tool/i386/Ventoy2Disk.gtk3 b/INSTALL/tool/i386/Ventoy2Disk.gtk3 index 7d332fe..7b2f5d9 100644 Binary files a/INSTALL/tool/i386/Ventoy2Disk.gtk3 and b/INSTALL/tool/i386/Ventoy2Disk.gtk3 differ diff --git a/INSTALL/tool/i386/Ventoy2Disk.qt5 b/INSTALL/tool/i386/Ventoy2Disk.qt5 index 04e8781..61ed87a 100644 Binary files a/INSTALL/tool/i386/Ventoy2Disk.qt5 and b/INSTALL/tool/i386/Ventoy2Disk.qt5 differ diff --git a/INSTALL/tool/mips64el/Ventoy2Disk.gtk3 b/INSTALL/tool/mips64el/Ventoy2Disk.gtk3 index 5a4cc8c..c07f01c 100644 Binary files a/INSTALL/tool/mips64el/Ventoy2Disk.gtk3 and b/INSTALL/tool/mips64el/Ventoy2Disk.gtk3 differ diff --git a/INSTALL/tool/mips64el/Ventoy2Disk.qt5 b/INSTALL/tool/mips64el/Ventoy2Disk.qt5 index 43c3c2e..924e4a0 100644 Binary files a/INSTALL/tool/mips64el/Ventoy2Disk.qt5 and b/INSTALL/tool/mips64el/Ventoy2Disk.qt5 differ diff --git a/INSTALL/tool/x86_64/Ventoy2Disk.gtk2 b/INSTALL/tool/x86_64/Ventoy2Disk.gtk2 index 4ebc7fa..039f398 100644 Binary files a/INSTALL/tool/x86_64/Ventoy2Disk.gtk2 and b/INSTALL/tool/x86_64/Ventoy2Disk.gtk2 differ diff --git a/INSTALL/tool/x86_64/Ventoy2Disk.gtk3 b/INSTALL/tool/x86_64/Ventoy2Disk.gtk3 index 2e7c5d2..5553fe3 100644 Binary files a/INSTALL/tool/x86_64/Ventoy2Disk.gtk3 and b/INSTALL/tool/x86_64/Ventoy2Disk.gtk3 differ diff --git a/INSTALL/tool/x86_64/Ventoy2Disk.qt5 b/INSTALL/tool/x86_64/Ventoy2Disk.qt5 index 59c77d3..13860cb 100644 Binary files a/INSTALL/tool/x86_64/Ventoy2Disk.qt5 and b/INSTALL/tool/x86_64/Ventoy2Disk.qt5 differ diff --git a/LinuxGUI/Ventoy2Disk/GTK/ventoy_gtk.c b/LinuxGUI/Ventoy2Disk/GTK/ventoy_gtk.c index f3383bd..77096a1 100644 --- a/LinuxGUI/Ventoy2Disk/GTK/ventoy_gtk.c +++ b/LinuxGUI/Ventoy2Disk/GTK/ventoy_gtk.c @@ -38,7 +38,7 @@ #include #include "ventoy_gtk.h" -int g_secure_boot_support = 1; +int g_secure_boot_support = 0; GtkWidget *g_topWindow = NULL; GtkWidget *g_partCfgWindow = NULL; GtkBuilder *g_pXmlBuilder = NULL; @@ -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); } @@ -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; diff --git a/LinuxGUI/Ventoy2Disk/QT/ventoy2diskwindow.cpp b/LinuxGUI/Ventoy2Disk/QT/ventoy2diskwindow.cpp index e9424da..b0307a2 100644 --- a/LinuxGUI/Ventoy2Disk/QT/ventoy2diskwindow.cpp +++ b/LinuxGUI/Ventoy2Disk/QT/ventoy2diskwindow.cpp @@ -436,8 +436,7 @@ void Ventoy2DiskWindow::OnInitWindow(void) QPixmap pix2; char ver[512]; - //ui->labelVentoyLocalSecure->hide(); - ui->actionSecure_Boot_Support->trigger(); + ui->labelVentoyLocalSecure->hide(); m_part_group->addAction(ui->actionMBR); m_part_group->addAction(ui->actionGPT); @@ -473,6 +472,8 @@ void Ventoy2DiskWindow::OnInitWindow(void) ui->labelVentoyDeviceVer->setText(""); ui->labelVentoyDevicePartStyle->setText(""); + ui->actionSecure_Boot_Support->trigger(); + ui->actionShow_All_Devices->setChecked(ventoy_code_get_cur_show_all()); connect(m_thread, &MyQThread::thread_event, this, &Ventoy2DiskWindow::thread_event); @@ -665,7 +666,7 @@ void Ventoy2DiskWindow::on_comboBoxDevice_currentIndexChanged(int index) } else { - if (ui->actionSecure_Boot_Support->isChecked()) + if (!(ui->actionSecure_Boot_Support->isChecked())) { ui->actionSecure_Boot_Support->trigger(); } diff --git a/Ventoy2Disk/Ventoy2Disk/WinDialog.c b/Ventoy2Disk/Ventoy2Disk/WinDialog.c index d9fe702..05dfa60 100644 Binary files a/Ventoy2Disk/Ventoy2Disk/WinDialog.c and b/Ventoy2Disk/Ventoy2Disk/WinDialog.c differ