Revert "test #3"

This reverts commit 08004b9181.
This commit is contained in:
fourtf 2019-10-03 22:17:59 +02:00
parent 9d1213ecad
commit 44551b4009
3 changed files with 6 additions and 6 deletions

View file

@ -314,7 +314,7 @@ void Updates::setStatus_(Status status)
if (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));
};
// updateChange(Updates::getInstance().getStatus());
updateChange(Updates::getInstance().getStatus());
// signalHolder.managedConnect(
// Updates::getInstance().statusUpdated,
// [updateChange](auto status) { updateChange(status); });
signalHolder.managedConnect(
Updates::getInstance().statusUpdated,
[updateChange](auto status) { updateChange(status); });
}
} // namespace chatterino

View file

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