mirror of
https://github.com/PrismLauncher/PrismLauncher.git
synced 2026-07-05 12:56:58 +03:00
Merge pull request #1039 from budak7273/fix-world-safety-nag-title-text
This commit is contained in:
parent
10a70732ce
commit
be6d6501e8
2 changed files with 7 additions and 7 deletions
|
|
@ -211,7 +211,7 @@ void WorldListPage::on_actionDatapacks_triggered()
|
|||
return;
|
||||
}
|
||||
|
||||
if(!worldSafetyNagQuestion())
|
||||
if(!worldSafetyNagQuestion(tr("Open World Datapacks Folder")))
|
||||
return;
|
||||
|
||||
auto fullPath = m_worlds->data(index, WorldList::FolderRole).toString();
|
||||
|
|
@ -269,7 +269,7 @@ void WorldListPage::on_actionMCEdit_triggered()
|
|||
return;
|
||||
}
|
||||
|
||||
if(!worldSafetyNagQuestion())
|
||||
if(!worldSafetyNagQuestion(tr("Open World in MCEdit")))
|
||||
return;
|
||||
|
||||
auto fullPath = m_worlds->data(index, WorldList::FolderRole).toString();
|
||||
|
|
@ -373,11 +373,11 @@ bool WorldListPage::isWorldSafe(QModelIndex)
|
|||
return !m_inst->isRunning();
|
||||
}
|
||||
|
||||
bool WorldListPage::worldSafetyNagQuestion()
|
||||
bool WorldListPage::worldSafetyNagQuestion(const QString &actionType)
|
||||
{
|
||||
if(!isWorldSafe(getSelectedWorld()))
|
||||
{
|
||||
auto result = QMessageBox::question(this, tr("Copy World"), tr("Changing a world while Minecraft is running is potentially unsafe.\nDo you wish to proceed?"));
|
||||
auto result = QMessageBox::question(this, actionType, tr("Changing a world while Minecraft is running is potentially unsafe.\nDo you wish to proceed?"));
|
||||
if(result == QMessageBox::No)
|
||||
{
|
||||
return false;
|
||||
|
|
@ -395,7 +395,7 @@ void WorldListPage::on_actionCopy_triggered()
|
|||
return;
|
||||
}
|
||||
|
||||
if(!worldSafetyNagQuestion())
|
||||
if(!worldSafetyNagQuestion(tr("Copy World")))
|
||||
return;
|
||||
|
||||
auto worldVariant = m_worlds->data(index, WorldList::ObjectRole);
|
||||
|
|
@ -417,7 +417,7 @@ void WorldListPage::on_actionRename_triggered()
|
|||
return;
|
||||
}
|
||||
|
||||
if(!worldSafetyNagQuestion())
|
||||
if(!worldSafetyNagQuestion(tr("Rename World")))
|
||||
return;
|
||||
|
||||
auto worldVariant = m_worlds->data(index, WorldList::ObjectRole);
|
||||
|
|
|
|||
|
|
@ -93,7 +93,7 @@ protected:
|
|||
private:
|
||||
QModelIndex getSelectedWorld();
|
||||
bool isWorldSafe(QModelIndex index);
|
||||
bool worldSafetyNagQuestion();
|
||||
bool worldSafetyNagQuestion(const QString &actionType);
|
||||
void mceditError();
|
||||
|
||||
private:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue