mirror of
https://github.com/shadps4-emu/shadPS4.git
synced 2025-08-04 16:32:39 +00:00
+
This commit is contained in:
parent
83e0a40bd0
commit
8695aa7a6c
@ -190,8 +190,19 @@ public:
|
||||
QDesktopServices::openUrl(QUrl::fromLocalFile(logPath));
|
||||
#endif
|
||||
} else {
|
||||
QMessageBox::information(nullptr, tr("Error"),
|
||||
QString(tr("No log file found for this game!")));
|
||||
QMessageBox msgBox;
|
||||
msgBox.setIcon(QMessageBox::Information);
|
||||
msgBox.setText(tr("No log file found for this game!"));
|
||||
|
||||
QPushButton* okButton = msgBox.addButton(QMessageBox::Ok);
|
||||
QPushButton* openFolderButton =
|
||||
msgBox.addButton(tr("Open Log Folder"), QMessageBox::ActionRole);
|
||||
|
||||
msgBox.exec();
|
||||
|
||||
if (msgBox.clickedButton() == openFolderButton) {
|
||||
QDesktopServices::openUrl(QUrl::fromLocalFile(logPath));
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user