diff options
| author | Tillmann Karras <tilkax@gmail.com> | 2024-04-11 16:48:10 +0200 |
|---|---|---|
| committer | Tillmann Karras <tilkax@gmail.com> | 2024-04-11 16:48:10 +0200 |
| commit | 99a8849125f8947d1261a0ddaacde8ae98ea4ba5 (patch) | |
| tree | 6938a46650f2468a032cc039a1cf0140be3daf7a /Source/Core/DolphinQt/Settings/USBDeviceAddToWhitelistDialog.cpp | |
| parent | 69aca2fbfc88d08a17d36c03d51dd698eb9cce1b (diff) | |
Qt: trigger first USB device scan without a timer
Currently the dialog makes you wait one second before it shows anything.
Instead, trigger the first scan manually.
Diffstat (limited to 'Source/Core/DolphinQt/Settings/USBDeviceAddToWhitelistDialog.cpp')
| -rw-r--r-- | Source/Core/DolphinQt/Settings/USBDeviceAddToWhitelistDialog.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Source/Core/DolphinQt/Settings/USBDeviceAddToWhitelistDialog.cpp b/Source/Core/DolphinQt/Settings/USBDeviceAddToWhitelistDialog.cpp index 447175ed46..fd2b26e511 100644 --- a/Source/Core/DolphinQt/Settings/USBDeviceAddToWhitelistDialog.cpp +++ b/Source/Core/DolphinQt/Settings/USBDeviceAddToWhitelistDialog.cpp @@ -91,6 +91,7 @@ void USBDeviceAddToWhitelistDialog::InitControls() &QPushButton::clicked); connect(m_refresh_devices_timer, &QTimer::timeout, this, &USBDeviceAddToWhitelistDialog::RefreshDeviceList); + RefreshDeviceList(); m_refresh_devices_timer->start(1000); main_layout->addWidget(usb_inserted_devices_list); |
