summaryrefslogtreecommitdiff
path: root/src/mainwindow.cpp
diff options
context:
space:
mode:
authorLostDragonist <lost.dragonist@gmail.com>2019-01-05 02:17:37 -0600
committerLostDragonist <lost.dragonist@gmail.com>2019-01-05 02:17:37 -0600
commit3d24650095abdf49ec734b9777443da614b680fa (patch)
tree6b8eb576e19c00381f7cc1d280cb1e7be55163a0 /src/mainwindow.cpp
parenta6e526210ff1253c7b8ded272f119f98395ed715 (diff)
Fix counting light-flagged plugins
Diffstat (limited to 'src/mainwindow.cpp')
-rw-r--r--src/mainwindow.cpp10
1 files changed, 5 insertions, 5 deletions
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;