diff options
| author | LostDragonist <lost.dragonist@gmail.com> | 2019-01-05 02:17:37 -0600 |
|---|---|---|
| committer | LostDragonist <lost.dragonist@gmail.com> | 2019-01-05 02:17:37 -0600 |
| commit | 3d24650095abdf49ec734b9777443da614b680fa (patch) | |
| tree | 6b8eb576e19c00381f7cc1d280cb1e7be55163a0 | |
| parent | a6e526210ff1253c7b8ded272f119f98395ed715 (diff) | |
Fix counting light-flagged plugins
| -rw-r--r-- | src/mainwindow.cpp | 10 |
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;
|
