Merge pull request #6413 from Kewlan/limitable_input_dialog_limit

limitable_input_dialog: Implement character limiter
This commit is contained in:
bunnei
2021-06-09 11:55:36 -07:00
committed by GitHub
3 changed files with 48 additions and 5 deletions

View File

@ -1395,7 +1395,8 @@ void ConfigureInputPlayer::keyPressEvent(QKeyEvent* event) {
void ConfigureInputPlayer::CreateProfile() {
const auto profile_name =
LimitableInputDialog::GetText(this, tr("New Profile"), tr("Enter a profile name:"), 1, 20);
LimitableInputDialog::GetText(this, tr("New Profile"), tr("Enter a profile name:"), 1, 20,
LimitableInputDialog::InputLimiter::Filesystem);
if (profile_name.isEmpty()) {
return;