This commit is contained in:
fourtf 2019-10-03 21:29:18 +02:00
parent 30587e18c9
commit 08004b9181
3 changed files with 6 additions and 6 deletions

View file

@ -314,7 +314,7 @@ void Updates::setStatus_(Status status)
if (this->status_ != status) if (this->status_ != status)
{ {
this->status_ = status; this->status_ = status;
//postToThread([this, status] { this->statusUpdated.invoke(status); }); postToThread([this, status] { this->statusUpdated.invoke(status); });
} }
} }

View file

@ -47,11 +47,11 @@ void initUpdateButton(Button &button,
button.setPixmap(QPixmap(imageUrl)); button.setPixmap(QPixmap(imageUrl));
}; };
updateChange(Updates::getInstance().getStatus()); // updateChange(Updates::getInstance().getStatus());
signalHolder.managedConnect( // signalHolder.managedConnect(
Updates::getInstance().statusUpdated, // Updates::getInstance().statusUpdated,
[updateChange](auto status) { updateChange(status); }); // [updateChange](auto status) { updateChange(status); });
} }
} // namespace chatterino } // namespace chatterino

View file

@ -530,7 +530,7 @@ void SplitNotebook::addCustomButtons()
// updates // updates
auto updateBtn = this->addCustomButton(); auto updateBtn = this->addCustomButton();
initUpdateButton(*updateBtn, this->signalHolder_); //initUpdateButton(*updateBtn, this->signalHolder_);
} }
SplitContainer *SplitNotebook::addPage(bool select) SplitContainer *SplitNotebook::addPage(bool select)