From c576f1ff40d81553e26c9f8fcfc01dc675fc9c1a Mon Sep 17 00:00:00 2001 From: LostDragonist Date: Sun, 26 Aug 2018 18:39:30 -0500 Subject: Refresh save game list when local game settings may have changed --- src/mainwindow.cpp | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'src/mainwindow.cpp') diff --git a/src/mainwindow.cpp b/src/mainwindow.cpp index 3c749bf5..5908f9e4 100644 --- a/src/mainwindow.cpp +++ b/src/mainwindow.cpp @@ -84,6 +84,7 @@ along with Mod Organizer. If not, see . #include #include #include +#include "localsavegames.h" #include #include @@ -1132,6 +1133,11 @@ void MainWindow::on_profileBox_currentIndexChanged(int index) } else { activateSelectedProfile(); } + + LocalSavegames *saveGames = m_OrganizerCore.managedGame()->feature(); + if (saveGames != nullptr && saveGames->updateSaveGames(m_OrganizerCore.currentProfile())) { + refreshSaveList(); + } } } @@ -1973,6 +1979,12 @@ void MainWindow::on_actionAdd_Profile_triggered() break; } } + + LocalSavegames *saveGames = m_OrganizerCore.managedGame()->feature(); + if (saveGames != nullptr && saveGames->updateSaveGames(m_OrganizerCore.currentProfile())) { + refreshSaveList(); + } + // addProfile(); } -- cgit v1.3.1