mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-30 04:38:49 +00:00
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.
This commit is contained in:
parent
69aca2fbfc
commit
99a8849125
1 changed files with 1 additions and 0 deletions
|
@ -91,6 +91,7 @@ void USBDeviceAddToWhitelistDialog::InitControls()
|
||||||
&QPushButton::clicked);
|
&QPushButton::clicked);
|
||||||
connect(m_refresh_devices_timer, &QTimer::timeout, this,
|
connect(m_refresh_devices_timer, &QTimer::timeout, this,
|
||||||
&USBDeviceAddToWhitelistDialog::RefreshDeviceList);
|
&USBDeviceAddToWhitelistDialog::RefreshDeviceList);
|
||||||
|
RefreshDeviceList();
|
||||||
m_refresh_devices_timer->start(1000);
|
m_refresh_devices_timer->start(1000);
|
||||||
|
|
||||||
main_layout->addWidget(usb_inserted_devices_list);
|
main_layout->addWidget(usb_inserted_devices_list);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue