From d2a9fb7c3c0ff2c0e45ad2751002e8961eac366c Mon Sep 17 00:00:00 2001 From: morg Date: Mon, 6 Jan 2025 15:16:26 +0100 Subject: [PATCH] Refresh plugin list after a plugins scan. Fixes #4505 --- qt/OpenRGBDialog2/OpenRGBDialog2.cpp | 1 + qt/OpenRGBPluginsPage/OpenRGBPluginsPage.h | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/qt/OpenRGBDialog2/OpenRGBDialog2.cpp b/qt/OpenRGBDialog2/OpenRGBDialog2.cpp index dfb07944..8849a6cd 100644 --- a/qt/OpenRGBDialog2/OpenRGBDialog2.cpp +++ b/qt/OpenRGBDialog2/OpenRGBDialog2.cpp @@ -1546,6 +1546,7 @@ void OpenRGBDialog2::onDetectionEnded() { plugin_manager->ScanAndLoadPlugins(); plugins_loaded = true; + PluginsPage->RefreshList(); } if(device_view_showing) diff --git a/qt/OpenRGBPluginsPage/OpenRGBPluginsPage.h b/qt/OpenRGBPluginsPage/OpenRGBPluginsPage.h index b6d61489..bc2996e1 100644 --- a/qt/OpenRGBPluginsPage/OpenRGBPluginsPage.h +++ b/qt/OpenRGBPluginsPage/OpenRGBPluginsPage.h @@ -28,6 +28,7 @@ public: ~OpenRGBPluginsPage(); void on_EnableButton_clicked(OpenRGBPluginsEntry* entry); + void RefreshList(); private slots: void changeEvent(QEvent *event); @@ -45,5 +46,4 @@ private: std::vector entries; bool InstallPlugin(std::string path); - void RefreshList(); };