mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-18 23:11:48 +00:00
WiimoteControllersWidget: Fix UI hang on opening
Fix the UI hanging for several seconds when opening the Controllers window. Move the scan for Bluetooth adapters onto a separate thread so the Host thread doesn't have to wait for it. Only automatically scan for adapters once, when opening the Controllers window for the first time. Add a Refresh button to let the user refresh the adapter list afterward.
This commit is contained in:
parent
fc833f845c
commit
ffd46cd10c
3 changed files with 76 additions and 12 deletions
|
@ -27,7 +27,6 @@ void ControllersWindow::showEvent(QShowEvent* event)
|
|||
{
|
||||
QDialog::showEvent(event);
|
||||
m_wiimote_controllers->UpdateBluetoothAvailableStatus();
|
||||
m_wiimote_controllers->RefreshBluetoothAdapters();
|
||||
}
|
||||
|
||||
void ControllersWindow::CreateMainLayout()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue