The previous code used job->exec() which executes the init task in the current thread, this caused dash to block during start up.
I took a look at the documentation for BluezQt::Manager and noticed it shows an example using job->start() and connecting to BluezQt::InitManagerJob::result so I modified the code to do just that.
Also added some log lines so its easy to see when this happens, how long it takes and if it found any devices.
Description:
The previous code used
job->exec()
which executes the init task in the current thread, this caused dash to block during start up.I took a look at the documentation for
BluezQt::Manager
and noticed it shows an example usingjob->start()
and connecting toBluezQt::InitManagerJob::result
so I modified the code to do just that.Also added some log lines so its easy to see when this happens, how long it takes and if it found any devices.
Checklist: