From 99a8849125f8947d1261a0ddaacde8ae98ea4ba5 Mon Sep 17 00:00:00 2001 From: Tillmann Karras Date: Thu, 11 Apr 2024 16:48:10 +0200 Subject: [PATCH] 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. --- Source/Core/DolphinQt/Settings/USBDeviceAddToWhitelistDialog.cpp | 1 + 1 file changed, 1 insertion(+) 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);