From 874a63bab7c29a273a353c678904de07b6ce47fd Mon Sep 17 00:00:00 2001 From: silas Date: Sun, 28 Feb 2021 15:30:01 -0600 Subject: [PATCH] Add large comment block --- qt/OpenRGBDialog2.cpp | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/qt/OpenRGBDialog2.cpp b/qt/OpenRGBDialog2.cpp index 4ac739524..9f2231e34 100644 --- a/qt/OpenRGBDialog2.cpp +++ b/qt/OpenRGBDialog2.cpp @@ -338,6 +338,16 @@ OpenRGBDialog2::OpenRGBDialog2(QWidget *parent) : QMainWindow(parent), ui(new Op TopBarAlreadyLoaded = true; + /*--------------------------------------------------------------------------------------------------------------*\ + | During the init phase of OpenRGB (The constructor) A few things are run: | + | Device Detection and plugin detection. | + | Plugin detecion is only done ONE TIME. Whereas Device detection can happen multiple times | + | | + | Because OpenRGB wipes all of the plugins from the device tab I have to re-add when the device list is changed | + | Basically this makes sure that it doesn't add the plugins twice during init | + | As well as makes sure they do get added later on during rescan | + | The function this bool is used in is UpdateDevicesList() | + \*--------------------------------------------------------------------------------------------------------------*/ NotFirstRun = true; }