Skip to content

Commit

Permalink
Change the text input, not kernel_options directly
Browse files Browse the repository at this point in the history
  • Loading branch information
AdrianTM committed Jul 24, 2024
1 parent c3203f4 commit 19a44d5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion mainwindow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -377,7 +377,8 @@ void MainWindow::checkNvidiaGraphicsCard()
tr("This computer uses an NVIDIA graphics card. Are you planning to use the "
"resulting ISO on the same computer or another computer with an NVIDIA card?"),
QMessageBox::Yes | QMessageBox::No)) {
boot_options += " xorg=nvidia";
QString currentOptions = ui->textOptions->text();
ui->textOptions->setText(currentOptions.isEmpty() ? "xorg=nvidia" : currentOptions + " xorg=nvidia");
QMessageBox::information(this, tr("NVIDIA Selected"),
tr("Note: If you use the resulting ISO on a computer without an NVIDIA card, "
"you will likely need to remove 'xorg=nvidia' from the boot options."));
Expand Down

0 comments on commit 19a44d5

Please sign in to comment.