Gui: Migration complete wording tweak

This commit is contained in:
Chris Hennes
2025-09-17 12:16:24 -05:00
parent 3799a5b77d
commit dffdb35f25
2 changed files with 5 additions and 5 deletions

View File

@@ -287,7 +287,7 @@ void DlgVersionMigrator::migrate() {
migrationRunning->exec();
if (migrationRunning->result() == QDialog::Accepted) {
restart();
restart(tr("Migration complete"));
} else {
QMessageBox::critical(mainWindow, QObject::tr("Migration failed"),
QObject::tr("Migration failed. See the Report View for details."));
@@ -320,7 +320,7 @@ void DlgVersionMigrator::freshStart()
}
fs::create_directory(versionDir);
}
restart();
restart(tr("New default configuration created"));
}
void DlgVersionMigrator::help()
@@ -329,12 +329,12 @@ void DlgVersionMigrator::help()
QDesktopServices::openUrl(QUrl(helpPage));
}
void DlgVersionMigrator::restart()
void DlgVersionMigrator::restart(const QString &message)
{
App::GetApplication().GetUserParameter().SaveDocument(); // Flush to disk before restarting
auto *restarting = new QMessageBox(this);
restarting->setText(
QObject::tr("Migration complete. Restarting…"));
message + QObject::tr(" Restarting…"));
restarting->setWindowTitle(QObject::tr("Restarting"));
restarting->setStandardButtons(QMessageBox::NoButton);
auto closeNotice = [restarting]() {

View File

@@ -61,7 +61,7 @@ namespace Gui {
QThread* sizeCalculationWorkerThread;
std::unique_ptr<class Ui_DlgVersionMigrator> ui;
void restart();
void restart(const QString &message);
};
}