diff options
| author | isanae <14251494+isanae@users.noreply.github.com> | 2020-12-28 06:59:39 -0500 |
|---|---|---|
| committer | isanae <14251494+isanae@users.noreply.github.com> | 2020-12-28 06:59:39 -0500 |
| commit | 91e1cc9ccaeed1ddb3b4c06ede213018000bf86d (patch) | |
| tree | 9fec5eafa91f4a54d8e88899b5cf34f9e39cf61c /src/mainwindow.cpp | |
| parent | f01fe9ce7c17bc9697286b49f03534a45d3daaa4 (diff) | |
update mod counts for creating/restoring backups
Diffstat (limited to 'src/mainwindow.cpp')
| -rw-r--r-- | src/mainwindow.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/mainwindow.cpp b/src/mainwindow.cpp index 31b82d62..08c8ef7c 100644 --- a/src/mainwindow.cpp +++ b/src/mainwindow.cpp @@ -2553,7 +2553,9 @@ void MainWindow::restoreBackup_clicked() if (!modDir.rename(modInfo->absolutePath(), destinationPath)) { reportError(tr("failed to rename \"%1\" to \"%2\"").arg(modInfo->absolutePath()).arg(destinationPath)); } + m_OrganizerCore.refresh(); + updateModCount(); } } } @@ -2703,7 +2705,9 @@ void MainWindow::backupMod_clicked() QMessageBox::information(this, tr("Failed"), tr("Failed to create backup.")); } + m_OrganizerCore.refresh(); + updateModCount(); } @@ -3321,6 +3325,8 @@ void MainWindow::refreshProfile_activated() void MainWindow::updateModCount() { + TimeThis tt("updateModCount"); + int activeCount = 0; int visActiveCount = 0; int backupCount = 0; |
