aboutsummaryrefslogtreecommitdiff
path: root/src/mods.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/mods.cc')
-rw-r--r--src/mods.cc7
1 files changed, 2 insertions, 5 deletions
diff --git a/src/mods.cc b/src/mods.cc
index 405b316..0f6f498 100644
--- a/src/mods.cc
+++ b/src/mods.cc
@@ -37,7 +37,7 @@ void Mods::onNotify() {
if(isComplete) {
if(worker && worker->joinable()) {
worker->join();
- header->reader->modsUpdated();
+ header->reader->refresh();
header->updateButtons();
header->updateMenus();
endProgress();
@@ -114,10 +114,7 @@ void Mods::displayMain() {
add->set_filter(filter);
add->signal_file_set().connect([this, add]() {
installMods(add->get_filenames());
- auto newMods = this->header->reader->modsUpdated();
- if(! newMods.empty()) {
- this->header->reader->setVersion(newMods[0]);
- }
+ this->header->reader->refresh();
this->header->updateMenus();
this->header->updateButtons();
this->header->showText();