From 3d24650095abdf49ec734b9777443da614b680fa Mon Sep 17 00:00:00 2001 From: LostDragonist Date: Sat, 5 Jan 2019 02:17:37 -0600 Subject: Fix counting light-flagged plugins --- src/mainwindow.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'src/mainwindow.cpp') diff --git a/src/mainwindow.cpp b/src/mainwindow.cpp index a06b206a..a55c78af 100644 --- a/src/mainwindow.cpp +++ b/src/mainwindow.cpp @@ -3216,14 +3216,14 @@ void MainWindow::updatePluginCount() for (QString plugin : list->pluginNames()) { bool active = list->isEnabled(plugin); bool visible = m_PluginListSortProxy->filterMatchesPlugin(plugin); - if (list->isMaster(plugin)) { - masterCount++; - activeMasterCount += active; - activeVisibleCount += visible && active; - } else if (list->isLight(plugin) || list->isLightFlagged(plugin)) { + if (list->isLight(plugin) || list->isLightFlagged(plugin)) { lightMasterCount++; activeLightMasterCount += active; activeVisibleCount += visible && active; + } else if (list->isMaster(plugin)) { + masterCount++; + activeMasterCount += active; + activeVisibleCount += visible && active; } else { regularCount++; activeRegularCount += active; -- cgit v1.3.1