diff options
| author | Al <gabriel.cortesi@outlook.com> | 2018-12-24 17:29:16 +0100 |
|---|---|---|
| committer | Al <gabriel.cortesi@outlook.com> | 2018-12-24 17:29:16 +0100 |
| commit | d28ddcfbb52394a2a7ac793ad376ea8fd7b514fe (patch) | |
| tree | f6e3038adf070a2f223edc0cd88d74f8ce539502 /src/mainwindow.cpp | |
| parent | 6211a23c5f2d891b7e2c91d837c5ed98959f4f27 (diff) | |
Added Active Plugins and Active Mods counters
Diffstat (limited to 'src/mainwindow.cpp')
| -rw-r--r-- | src/mainwindow.cpp | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/mainwindow.cpp b/src/mainwindow.cpp index bb136364..74374c2b 100644 --- a/src/mainwindow.cpp +++ b/src/mainwindow.cpp @@ -458,6 +458,12 @@ MainWindow::MainWindow(QSettings &initSettings // set the name of the widget to the name of the action to allow styling
ui->toolBar->widgetForAction(action)->setObjectName(action->objectName());
}
+ ui->activePluginsCounter->display(m_OrganizerCore.pluginList()->enabledCount());
+ ui->activeModsCounter->display((int)m_OrganizerCore.currentProfile()->getActiveMods().size());
+ qDebug("Plugin enabledCount: %d", m_OrganizerCore.pluginList()->enabledCount());
+ qDebug("Mods enabledCount: %d", (int)m_OrganizerCore.currentProfile()->getActiveMods().size());
+
+
}
@@ -2186,6 +2192,11 @@ void MainWindow::directory_refreshed() statusBar()->hide();
}
+void MainWindow::esplist_changed()
+{
+ ui->activePluginsCounter->display(m_OrganizerCore.pluginList()->enabledCount());
+}
+
void MainWindow::modorder_changed()
{
for (unsigned int i = 0; i < m_OrganizerCore.currentProfile()->numMods(); ++i) {
@@ -2443,6 +2454,7 @@ void MainWindow::restoreBackup_clicked() void MainWindow::modlistChanged(const QModelIndex&, int)
{
m_OrganizerCore.currentProfile()->writeModlist();
+ ui->activeModsCounter->display((int)m_OrganizerCore.currentProfile()->getActiveMods().size());
}
void MainWindow::modlistSelectionChanged(const QModelIndex ¤t, const QModelIndex&)
|
