diff options
author | Your Name <you@example.com> | 2022-04-19 17:29:34 -0400 |
---|---|---|
committer | Your Name <you@example.com> | 2022-04-19 17:29:34 -0400 |
commit | 7fc9d0c19efb22cb02af7f34c8473c960ec2d02e (patch) | |
tree | f681ac174f584996734f0c97acca25cdf4b925d5 /src/mods.cc | |
parent | ff7307324ce69f3d55aa935db5aa0f1802785115 (diff) | |
download | biblereader-7fc9d0c19efb22cb02af7f34c8473c960ec2d02e.tar.gz biblereader-7fc9d0c19efb22cb02af7f34c8473c960ec2d02e.tar.bz2 biblereader-7fc9d0c19efb22cb02af7f34c8473c960ec2d02e.zip |
Code refactoring
Diffstat (limited to 'src/mods.cc')
-rw-r--r-- | src/mods.cc | 7 |
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(); |