mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-23 14:19:46 -06:00
Make double click on selected usb whitelist device add it
This commit is contained in:
@ -85,6 +85,8 @@ void USBDeviceAddToWhitelistDialog::InitControls()
|
|||||||
m_refresh_devices_timer = new QTimer(this);
|
m_refresh_devices_timer = new QTimer(this);
|
||||||
connect(usb_inserted_devices_list, &QListWidget::currentItemChanged, this,
|
connect(usb_inserted_devices_list, &QListWidget::currentItemChanged, this,
|
||||||
&USBDeviceAddToWhitelistDialog::OnDeviceSelection);
|
&USBDeviceAddToWhitelistDialog::OnDeviceSelection);
|
||||||
|
connect(usb_inserted_devices_list, &QListWidget::itemDoubleClicked, add_button,
|
||||||
|
&QPushButton::clicked);
|
||||||
connect(m_refresh_devices_timer, &QTimer::timeout, this,
|
connect(m_refresh_devices_timer, &QTimer::timeout, this,
|
||||||
&USBDeviceAddToWhitelistDialog::RefreshDeviceList);
|
&USBDeviceAddToWhitelistDialog::RefreshDeviceList);
|
||||||
m_refresh_devices_timer->start(1000);
|
m_refresh_devices_timer->start(1000);
|
||||||
|
Reference in New Issue
Block a user