From 27fb7984f883d569a365dd6b2d7b66469c55e7e6 Mon Sep 17 00:00:00 2001 From: silas Date: Fri, 26 Feb 2021 17:12:56 -0600 Subject: [PATCH] Accidentally didn't test enough loading something like the updates plugin (Which appears in the info tab) would make it load multiple times This commit fixes that --- qt/OpenRGBDialog2.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/qt/OpenRGBDialog2.cpp b/qt/OpenRGBDialog2.cpp index 382652842..2b3e2b450 100644 --- a/qt/OpenRGBDialog2.cpp +++ b/qt/OpenRGBDialog2.cpp @@ -340,7 +340,7 @@ void OpenRGBDialog2::closeEvent(QCloseEvent *event) { ResourceManager::get()->WaitForDeviceDetection(); - if (OpenRGBDialog2::MinimizeToTray && !this->isHidden()) + if (OpenRGBDialog2::MinimizeToTray) { hide(); event->ignore(); @@ -459,7 +459,7 @@ void OpenRGBDialog2::AddPluginTab(PluginManager* plugin_manager, int plugin_inde /*-----------------------------------------------------*\ | InformationTab - Place plugin in the Information tab | \*-----------------------------------------------------*/ - if(Location == "InformationTab") + if(Location == "InformationTab" && !TopBarAlreadyLoaded) { QWidget* NewPluginTab = new QWidget;