summaryrefslogtreecommitdiff
path: root/Source/Core/DolphinQt/Settings/USBDeviceAddToWhitelistDialog.cpp
diff options
context:
space:
mode:
authorJosJuice <josjuice@gmail.com>2025-07-15 18:44:21 +0200
committerGitHub <noreply@github.com>2025-07-15 18:44:21 +0200
commit5674afa63d86308caa5a1a0cbebac7dd3ab031e9 (patch)
treeeec34e4061eb9bfcd35379b03bcfbd39b172af9b /Source/Core/DolphinQt/Settings/USBDeviceAddToWhitelistDialog.cpp
parent2e26c03378f4f45cf8af75ee62f86e78d50ff0b6 (diff)
parent9e57447fd32caa6f5c05609e0acd841132e3fde3 (diff)
Merge pull request #13804 from jordan-woyak/add-device-shorter-placeholder-text
USBDeviceAddToWhitelistDialog: Remove examples from VID/PID entry placeholder text.
Diffstat (limited to 'Source/Core/DolphinQt/Settings/USBDeviceAddToWhitelistDialog.cpp')
-rw-r--r--Source/Core/DolphinQt/Settings/USBDeviceAddToWhitelistDialog.cpp7
1 files changed, 5 insertions, 2 deletions
diff --git a/Source/Core/DolphinQt/Settings/USBDeviceAddToWhitelistDialog.cpp b/Source/Core/DolphinQt/Settings/USBDeviceAddToWhitelistDialog.cpp
index 94f94c4c28..e3a0fa2bbd 100644
--- a/Source/Core/DolphinQt/Settings/USBDeviceAddToWhitelistDialog.cpp
+++ b/Source/Core/DolphinQt/Settings/USBDeviceAddToWhitelistDialog.cpp
@@ -96,9 +96,12 @@ void USBDeviceAddToWhitelistDialog::InitControls()
main_layout->addWidget(m_whitelist_buttonbox);
// i18n: VID means Vendor ID (in the context of a USB device)
- device_vid_textbox->setPlaceholderText(tr("Device VID (e.g., 057e)"));
+ device_vid_textbox->setPlaceholderText(tr("Device VID"));
// i18n: PID means Product ID (in the context of a USB device), not Process ID
- device_pid_textbox->setPlaceholderText(tr("Device PID (e.g., 0305)"));
+ device_pid_textbox->setPlaceholderText(tr("Device PID"));
+
+ device_vid_textbox->setMaxLength(4);
+ device_pid_textbox->setMaxLength(4);
}
void USBDeviceAddToWhitelistDialog::RefreshDeviceList()