aboutsummaryrefslogtreecommitdiff
path: root/src/mods.cc
diff options
context:
space:
mode:
authorYour Name <you@example.com>2022-04-19 17:29:34 -0400
committerYour Name <you@example.com>2022-04-19 17:29:34 -0400
commit7fc9d0c19efb22cb02af7f34c8473c960ec2d02e (patch)
treef681ac174f584996734f0c97acca25cdf4b925d5 /src/mods.cc
parentff7307324ce69f3d55aa935db5aa0f1802785115 (diff)
downloadbiblereader-7fc9d0c19efb22cb02af7f34c8473c960ec2d02e.tar.gz
biblereader-7fc9d0c19efb22cb02af7f34c8473c960ec2d02e.tar.bz2
biblereader-7fc9d0c19efb22cb02af7f34c8473c960ec2d02e.zip
Code refactoring
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();