Add the option to manually update channel text.

This adds the option to manually update the channel text.

So that people can get fresh stats when hovering over a header split, without having to wait for it to update / restarting chatterino.
This commit is contained in:
Lajamerr Mittesdine 2018-06-10 21:21:26 -04:00 committed by GitHub
parent 511f60a181
commit 1d1fdaaaf1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -136,9 +136,12 @@ void SplitHeader::addDropdownItems(RippleEffectButton *)
this->dropdownMenu.addAction("Open in Streamlink", this->split, &Split::doOpenStreamlink);
this->dropdownMenu.addSeparator();
this->dropdownMenu.addAction("Reload channel emotes", this, SLOT(menuReloadChannelEmotes()));
this->dropdownMenu.addAction("Reload channel stats", this, [this]{
updateChannelText();
});
this->dropdownMenu.addAction("Manual reconnect", this, SLOT(menuManualReconnect()));
this->dropdownMenu.addSeparator();
this->dropdownMenu.addAction("Show changelog", this, SLOT(menuShowChangelog()));
//this->dropdownMenu.addSeparator();
//this->dropdownMenu.addAction("Show changelog", this, SLOT(menuShowChangelog()));
// clang-format on
}