X-Git-Url: https://glassweightruler.freedombox.rocks/gitweb/Ventoy.git/blobdiff_plain/85d1910722e042a2e4a6c3b7c97b92159eb584c5..dc9a99bb2074cd2af880bf7750e8fdc021e15bdf:/LinuxGUI/Ventoy2Disk/QT/ventoy2diskwindow.cpp diff --git a/LinuxGUI/Ventoy2Disk/QT/ventoy2diskwindow.cpp b/LinuxGUI/Ventoy2Disk/QT/ventoy2diskwindow.cpp index e9424da..3615e3b 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); @@ -511,6 +512,14 @@ void Ventoy2DiskWindow::on_ButtonInstall_clicked() } cur = g_disk_list + index; + + if (cur->is4kn) + { + lang_string("STR_4KN_UNSUPPORTED", msg); + QMessageBox::critical(NULL, title_err, msg); + return; + } + if (ventoy_code_get_cur_part_style() == 0 && cur->size_in_byte > 2199023255552ULL) { lang_string("STR_DISK_2TB_MBR_ERROR", msg); @@ -665,7 +674,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(); }