mirror of
https://github.com/CalcProgrammer1/OpenRGB.git
synced 2025-12-23 23:37:48 -05:00
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:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user