mirror of
https://github.com/Chatterino/chatterino2.git
synced 2024-11-13 19:49:51 +01:00
Revert "Merge pull request #1 from TranRed/subbutton"
This reverts commit d3aa3694f2
.
This commit is contained in:
parent
23c2fa8ee5
commit
18349ed9b3
|
@ -636,16 +636,6 @@ void Split::showViewerList()
|
||||||
viewerDock->activateWindow();
|
viewerDock->activateWindow();
|
||||||
}
|
}
|
||||||
|
|
||||||
void Split::openSubPage()
|
|
||||||
{
|
|
||||||
ChannelPtr channel = this->getChannel();
|
|
||||||
|
|
||||||
if (auto twitchChannel = dynamic_cast<TwitchChannel *>(channel.get()))
|
|
||||||
{
|
|
||||||
QDesktopServices::openUrl(twitchChannel->subscriptionUrl());
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
void Split::copyToClipboard()
|
void Split::copyToClipboard()
|
||||||
{
|
{
|
||||||
QApplication::clipboard()->setText(this->view_->getSelectedText());
|
QApplication::clipboard()->setText(this->view_->getSelectedText());
|
||||||
|
|
|
@ -129,7 +129,6 @@ public slots:
|
||||||
void copyToClipboard();
|
void copyToClipboard();
|
||||||
void showSearch();
|
void showSearch();
|
||||||
void showViewerList();
|
void showViewerList();
|
||||||
void openSubPage();
|
|
||||||
void reloadChannelAndSubscriberEmotes();
|
void reloadChannelAndSubscriberEmotes();
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
@ -284,12 +284,9 @@ std::unique_ptr<QMenu> SplitHeader::createMainMenu()
|
||||||
|
|
||||||
// sub menu
|
// sub menu
|
||||||
auto moreMenu = new QMenu("More", this);
|
auto moreMenu = new QMenu("More", this);
|
||||||
|
|
||||||
moreMenu->addAction("Show viewer list", this->split_,
|
moreMenu->addAction("Show viewer list", this->split_,
|
||||||
&Split::showViewerList);
|
&Split::showViewerList);
|
||||||
|
|
||||||
moreMenu->addAction("Subscribe", this->split_, &Split::openSubPage);
|
|
||||||
|
|
||||||
auto action = new QAction(this);
|
auto action = new QAction(this);
|
||||||
action->setText("Notify when live");
|
action->setText("Notify when live");
|
||||||
action->setCheckable(true);
|
action->setCheckable(true);
|
||||||
|
|
Loading…
Reference in a new issue