summaryrefslogtreecommitdiff
path: root/Source/Core/DolphinQt/Settings/USBDeviceAddToWhitelistDialog.cpp
diff options
context:
space:
mode:
authorTillmann Karras <tilkax@gmail.com>2024-04-11 16:48:10 +0200
committerTillmann Karras <tilkax@gmail.com>2024-04-11 16:48:10 +0200
commit99a8849125f8947d1261a0ddaacde8ae98ea4ba5 (patch)
tree6938a46650f2468a032cc039a1cf0140be3daf7a /Source/Core/DolphinQt/Settings/USBDeviceAddToWhitelistDialog.cpp
parent69aca2fbfc88d08a17d36c03d51dd698eb9cce1b (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.cpp1
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);