From 1d1fdaaaf1ff7cffc18fe8012b89eea7906c7e3b Mon Sep 17 00:00:00 2001 From: Lajamerr Mittesdine Date: Sun, 10 Jun 2018 21:21:26 -0400 Subject: [PATCH] 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. --- src/widgets/helper/splitheader.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/widgets/helper/splitheader.cpp b/src/widgets/helper/splitheader.cpp index 7c178cf24..2e6532540 100644 --- a/src/widgets/helper/splitheader.cpp +++ b/src/widgets/helper/splitheader.cpp @@ -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 }