Enable secure boot support option by default.

This commit is contained in:
longpanda 2022-06-12 17:18:56 +08:00
parent 85d1910722
commit 23bd2d24e9
17 changed files with 8 additions and 5 deletions

View file

@ -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();
}