From 7fc9d0c19efb22cb02af7f34c8473c960ec2d02e Mon Sep 17 00:00:00 2001 From: Your Name Date: Tue, 19 Apr 2022 17:29:34 -0400 Subject: Code refactoring --- src/mods.cc | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'src/mods.cc') 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(); -- cgit v1.2.3