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
This commit is contained in:
silas 2021-02-26 17:12:56 -06:00
parent aea6f82026
commit 27fb7984f8

View file

@ -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;