mirror of https://github.com/ventoy/Ventoy.git
Enable secure boot support option by default.
This commit is contained in:
parent
85d1910722
commit
23bd2d24e9
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
|
@ -38,7 +38,7 @@
|
|||
#include <gdk/gdkkeysyms.h>
|
||||
#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;
|
||||
|
|
|
@ -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();
|
||||
}
|
||||
|
|
Binary file not shown.
Loading…
Reference in New Issue