mirror of
https://github.com/PrismLauncher/PrismLauncher.git
synced 2026-06-29 09:59:59 +03:00
Add selectable message box helper, use it, make login GUI error label selectable
This commit is contained in:
parent
e7e03c2b54
commit
b0ef429786
11 changed files with 88 additions and 44 deletions
|
|
@ -23,6 +23,7 @@
|
|||
#include "logic/ForgeInstaller.h"
|
||||
#include "gui/versionselectdialog.h"
|
||||
#include "gui/platform.h"
|
||||
#include "gui/CustomMessageBox.h"
|
||||
#include "ProgressDialog.h"
|
||||
|
||||
#include <pathutils.h>
|
||||
|
|
@ -110,11 +111,11 @@ void OneSixModEditDialog::on_customizeBtn_clicked()
|
|||
|
||||
void OneSixModEditDialog::on_revertBtn_clicked()
|
||||
{
|
||||
auto reply = QMessageBox::question(
|
||||
this, tr("Revert?"), tr("Do you want to revert the "
|
||||
"version of this instance to its original configuration?"),
|
||||
QMessageBox::Yes | QMessageBox::No);
|
||||
if (reply == QMessageBox::Yes)
|
||||
auto response = CustomMessageBox::selectable(this, tr("Revert?"),
|
||||
tr("Do you want to revert the "
|
||||
"version of this instance to its original configuration?"),
|
||||
QMessageBox::Question, QMessageBox::Yes | QMessageBox::No)->exec();
|
||||
if (response == QMessageBox::Yes)
|
||||
{
|
||||
if (m_inst->revertCustomVersion())
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue