Handle condition where detection finishes before OpenRGBDialog constructor finishes/has time to register detection end callback. Fixes plugins not loading when running OpenRGB as a background service.
This commit is contained in:
parent
faaf2009b6
commit
d59138363e
1 changed files with 8 additions and 0 deletions
|
|
@ -539,6 +539,14 @@ OpenRGBDialog::OpenRGBDialog(QWidget *parent) : QMainWindow(parent), ui(new Ui::
|
|||
\*-----------------------------------------------------*/
|
||||
connect(qApp, &QCoreApplication::aboutToQuit, this, &OpenRGBDialog::handleAboutToQuit);
|
||||
|
||||
/*-----------------------------------------------------*\
|
||||
| Handle the condition where detection ended before we |
|
||||
| finished initializing/registering detection callback |
|
||||
\*-----------------------------------------------------*/
|
||||
if(ResourceManager::get()->GetDetectionPercent() >= 100)
|
||||
{
|
||||
onDetectionEnded();
|
||||
}
|
||||
}
|
||||
|
||||
OpenRGBDialog::~OpenRGBDialog()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue