Fix auto-translations on Settings Pages

This commit is contained in:
ZeldaZach 2024-12-22 17:16:34 -05:00
parent e1ba39c437
commit 2c90b9e030
No known key found for this signature in database
3 changed files with 38 additions and 21 deletions

View file

@ -40,13 +40,12 @@ void SequenceEdit::setShortcutName(const QString &_shortcutName)
defaultButton->setEnabled(false);
lineEdit->setEnabled(false);
lineEdit->setText("");
lineEdit->setPlaceholderText(tr("Choose an action from the table"));
} else {
clearButton->setEnabled(true);
defaultButton->setEnabled(true);
lineEdit->setEnabled(true);
lineEdit->setText(SettingsCache::instance().shortcuts().getShortcutString(shortcutName));
lineEdit->setPlaceholderText(tr("Hit the key/combination of keys you want to set for this action"));
}
}
@ -215,4 +214,7 @@ void SequenceEdit::retranslateUi()
clearButton->setText(tr("Clear"));
defaultButton->setText(tr("Restore default"));
setShortcutName(shortcutName);
lineEdit->setPlaceholderText(tr("Choose an action from the table"));
lineEdit->setPlaceholderText(tr("Hit the key/combination of keys you want to set for this action"));
}