mirror of
https://github.com/CalcProgrammer1/OpenRGB.git
synced 2026-05-24 06:25:01 -04:00
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:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user