Partial solution to #380 - scary install button

This commit is contained in:
procount
2021-01-26 12:10:30 +00:00
parent e00d8d14f7
commit 702e5e7f9f
4 changed files with 22 additions and 0 deletions

3
b Executable file
View File

@@ -0,0 +1,3 @@
#!/bin/bash
./BUILDME.sh skip-kernel-rebuild $@

View File

@@ -81,5 +81,6 @@
<file>icons/right.JPG</file> <file>icons/right.JPG</file>
<file>icons/up.JPG</file> <file>icons/up.JPG</file>
<file>joy_keys.json</file> <file>joy_keys.json</file>
<file>icons/skull_old.png</file>
</qresource> </qresource>
</RCC> </RCC>

BIN
recovery/icons/skull_old.png Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.1 KiB

View File

@@ -940,6 +940,15 @@ void MainWindow::on_actionWrite_image_to_disk_triggered()
return; return;
} }
if (_numBootableOS)
{
if ( !_silent && QMessageBox::warning(this,
tr("Confirm"),
tr("Warning: Some OSes are already installed!\nContinuing will DELETE them.\n\nDo you want to continue?"),
QMessageBox::Yes|QMessageBox::No, QMessageBox::Yes) == QMessageBox::No)
return;
}
_newList.clear(); _newList.clear();
/* Get list of all selected OSes and see if any are unsupported */ /* Get list of all selected OSes and see if any are unsupported */
foreach (QListWidgetItem *item, selected) foreach (QListWidgetItem *item, selected)
@@ -2535,6 +2544,15 @@ void MainWindow::updateNeeded()
} }
ui->actionWrite_image_to_disk->setEnabled(enableWrite); ui->actionWrite_image_to_disk->setEnabled(enableWrite);
QIcon newIcon;
if (_numBootableOS)
newIcon.addFile(":/icons/skull_old.png");
else
newIcon.addFile(":/icons/backups.png");
ui->actionWrite_image_to_disk->setIcon(newIcon);
QPalette p = ui->neededLabel->palette(); QPalette p = ui->neededLabel->palette();
if (p.color(QPalette::WindowText) != colorNeededLabel) if (p.color(QPalette::WindowText) != colorNeededLabel)
{ {