mirror of
https://github.com/wheremyfoodat/Panda3DS.git
synced 2025-06-08 03:51:39 +12:00
Set up icons
This commit is contained in:
parent
6ae8d084b4
commit
0421eae7ae
4 changed files with 21 additions and 7 deletions
|
@ -209,11 +209,17 @@ void MainWindow::dumpRomFS() {
|
|||
|
||||
switch (res) {
|
||||
case RomFS::DumpingResult::Success: break; // Yay!
|
||||
case RomFS::DumpingResult::InvalidFormat:
|
||||
QMessageBox::warning(
|
||||
this, tr("Invalid format for RomFS dumping"), tr("The currently loaded app is not in a format that supports RomFS!")
|
||||
case RomFS::DumpingResult::InvalidFormat: {
|
||||
QMessageBox messageBox(
|
||||
QMessageBox::Icon::Warning, tr("Invalid format for RomFS dumping"),
|
||||
tr("The currently loaded app is not in a format that supports RomFS")
|
||||
);
|
||||
|
||||
QAbstractButton* button = messageBox.addButton(tr("OK"), QMessageBox::ButtonRole::YesRole);
|
||||
button->setIcon(QIcon(":/docs/img/rsob_icon.png"));
|
||||
messageBox.exec();
|
||||
break;
|
||||
}
|
||||
|
||||
case RomFS::DumpingResult::NoRomFS:
|
||||
QMessageBox::warning(this, tr("No RomFS found"), tr("No RomFS partition was found in the loaded app"));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue