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:
Dentomologist
2025-05-15 02:37:01 -07:00
parent fc833f845c
commit ffd46cd10c
3 changed files with 76 additions and 12 deletions

View File

@ -27,7 +27,6 @@ void ControllersWindow::showEvent(QShowEvent* event)
{
QDialog::showEvent(event);
m_wiimote_controllers->UpdateBluetoothAvailableStatus();
m_wiimote_controllers->RefreshBluetoothAdapters();
}
void ControllersWindow::CreateMainLayout()