mirror of
https://github.com/CalcProgrammer1/OpenRGB.git
synced 2026-09-15 06:38:59 -04: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:
1 parent
faaf2009b6
commit
d59138363e
1 file changed
+8
@@ -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