mirror of
https://github.com/Lime3DS/Lime3DS.git
synced 2026-07-09 17:24:49 -06:00
citra_qt.cpp: Deduplicate 3DS system file setup dialog strings
This commit is contained in:
parent
4f63caf5fc
commit
9a0f0e3caf
@ -2353,28 +2353,33 @@ void GMainWindow::OnMenuSetUpSystemFiles() {
|
||||
|
||||
QRadioButton radio1(&dialog);
|
||||
QRadioButton radio2(&dialog);
|
||||
QString new3dsSetupString = tr("Old 3DS setup");
|
||||
QString old3dsSetupString = tr("New 3DS setup");
|
||||
QString availableIcon = QStringLiteral("(\u2139\uFE0F) ");
|
||||
QString unavailableIcon = QStringLiteral("(\u26A0) ");
|
||||
QString installedIcon = QStringLiteral("(\u2705) ");
|
||||
if (!install_state.first) {
|
||||
radio1.setChecked(true);
|
||||
|
||||
radio1.setText(tr("(\u2139\uFE0F) Old 3DS setup"));
|
||||
radio1.setText(availableIcon + old3dsSetupString);
|
||||
radio1.setToolTip(tr("Setup is possible."));
|
||||
|
||||
radio2.setText(tr("(\u26A0) New 3DS setup"));
|
||||
radio2.setText(unavailableIcon + new3dsSetupString);
|
||||
radio2.setToolTip(tr("Old 3DS setup is required first."));
|
||||
radio2.setEnabled(false);
|
||||
} else {
|
||||
radio1.setText(tr("(\u2705) Old 3DS setup"));
|
||||
radio1.setText(installedIcon + old3dsSetupString);
|
||||
radio1.setToolTip(tr("Setup completed."));
|
||||
|
||||
if (!install_state.second) {
|
||||
radio2.setChecked(true);
|
||||
|
||||
radio2.setText(tr("(\u2139\uFE0F) New 3DS setup"));
|
||||
radio2.setText(availableIcon + new3dsSetupString);
|
||||
radio2.setToolTip(tr("Setup is possible."));
|
||||
} else {
|
||||
radio1.setChecked(true);
|
||||
|
||||
radio2.setText(tr("(\u2705) New 3DS setup"));
|
||||
radio2.setText(installedIcon + new3dsSetupString);
|
||||
radio2.setToolTip(tr("Setup completed."));
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user