aboutsummaryrefslogtreecommitdiff
path: root/libs
diff options
context:
space:
mode:
authorSulfurNitride <SulfurNitride@users.noreply.github.com>2026-04-18 08:47:27 -0500
committerSulfurNitride <SulfurNitride@users.noreply.github.com>2026-04-18 08:47:27 -0500
commit4279200bd015d79179961f02a1b4d1544c61ff52 (patch)
tree4e6e7807f9f2d5d03354e8cf39c223a92ad8172f /libs
parent06c396fd27f55929b40161e587cb9b596b549f3f (diff)
Gate panel-plugin swap on enabled, pre-sync plugins.txt from prefix
Bethesda Plugin Manager disabled in settings still swapped the espTab at UI init — the callback ran unconditionally. Gate it on isPluginEnabled and warn + flag restart when toggling panel plugins, since the swap is one-shot. Pre-deploy sync-back: if prefix Plugins.txt mtime is newer than profile (external LOOT run), syncPluginsBack first so the deploy doesn't clobber the external edits. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Diffstat (limited to 'libs')
-rw-r--r--libs/installer_bsplugins/src/MOPlugin/IPluginPanel.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/libs/installer_bsplugins/src/MOPlugin/IPluginPanel.cpp b/libs/installer_bsplugins/src/MOPlugin/IPluginPanel.cpp
index 904f049..9ec2b88 100644
--- a/libs/installer_bsplugins/src/MOPlugin/IPluginPanel.cpp
+++ b/libs/installer_bsplugins/src/MOPlugin/IPluginPanel.cpp
@@ -37,6 +37,10 @@ bool IPluginPanel::init(MOBase::IOrganizer* organizer)
}
organizer->onUserInterfaceInitialized([this, organizer](QMainWindow* mainWindow) {
+ if (!organizer->isPluginEnabled(this)) {
+ return;
+ }
+
const auto tabWidget = mainWindow->findChild<QTabWidget*>(u"tabWidget"_s);
if (tabWidget == nullptr) {