changed order of split header items

This commit is contained in:
fourtf 2018-07-04 17:42:40 +02:00
parent 2e1fdbec32
commit e9a112f8b3

View file

@ -124,13 +124,14 @@ SplitHeader::~SplitHeader()
void SplitHeader::addDropdownItems(RippleEffectButton *) void SplitHeader::addDropdownItems(RippleEffectButton *)
{ {
// clang-format off // clang-format off
this->dropdownMenu.addAction("Add new split", this->split, &Split::doAddSplit, QKeySequence(tr("Ctrl+T"))); this->dropdownMenu.addAction("New split", this->split, &Split::doAddSplit, QKeySequence(tr("Ctrl+T")));
this->dropdownMenu.addAction("Close split", this->split, &Split::doCloseSplit, QKeySequence(tr("Ctrl+W"))); this->dropdownMenu.addAction("Close split", this->split, &Split::doCloseSplit, QKeySequence(tr("Ctrl+W")));
// this->dropdownMenu.addAction("Move split", this, SLOT(menuMoveSplit())); this->dropdownMenu.addAction("Change channel", this->split, &Split::doChangeChannel, QKeySequence(tr("Ctrl+R")));
this->dropdownMenu.addAction("Popup", this->split, &Split::doPopup);
this->dropdownMenu.addAction("Open viewer list", this->split, &Split::doOpenViewerList);
this->dropdownMenu.addAction("Search in messages", this->split, &Split::doSearch, QKeySequence(tr("Ctrl+F")));
this->dropdownMenu.addSeparator(); this->dropdownMenu.addSeparator();
this->dropdownMenu.addAction("Viewer list", this->split, &Split::doOpenViewerList);
this->dropdownMenu.addAction("Search", this->split, &Split::doSearch, QKeySequence(tr("Ctrl+F")));
this->dropdownMenu.addSeparator();
this->dropdownMenu.addAction("Popup", this->split, &Split::doPopup);
#ifdef USEWEBENGINE #ifdef USEWEBENGINE
this->dropdownMenu.addAction("Start watching", this, [this]{ this->dropdownMenu.addAction("Start watching", this, [this]{
ChannelPtr _channel = this->split->getChannel(); ChannelPtr _channel = this->split->getChannel();
@ -143,16 +144,15 @@ void SplitHeader::addDropdownItems(RippleEffectButton *)
} }
}); });
#endif #endif
this->dropdownMenu.addAction("Change channel", this->split, &Split::doChangeChannel, QKeySequence(tr("Ctrl+R"))); this->dropdownMenu.addAction("Open browser", this->split, &Split::doOpenChannel);
this->dropdownMenu.addAction("Clear chat", this->split, &Split::doClearChat);
this->dropdownMenu.addAction("Open in web browser", this->split, &Split::doOpenChannel);
#ifndef USEWEBENGINE #ifndef USEWEBENGINE
this->dropdownMenu.addAction("Open web player", this->split, &Split::doOpenPopupPlayer); this->dropdownMenu.addAction("Open browser popup", this->split, &Split::doOpenPopupPlayer);
#endif #endif
this->dropdownMenu.addAction("Open in Streamlink", this->split, &Split::doOpenStreamlink); this->dropdownMenu.addAction("Open streamlink", this->split, &Split::doOpenStreamlink);
this->dropdownMenu.addSeparator(); this->dropdownMenu.addSeparator();
this->dropdownMenu.addAction("Reload channel emotes", this, SLOT(menuReloadChannelEmotes())); this->dropdownMenu.addAction("Reload channel emotes", this, SLOT(menuReloadChannelEmotes()));
this->dropdownMenu.addAction("Manual reconnect", this, SLOT(menuManualReconnect())); this->dropdownMenu.addAction("Reconnect", this, SLOT(menuManualReconnect()));
this->dropdownMenu.addAction("Clear messages", this->split, &Split::doClearChat);
// this->dropdownMenu.addSeparator(); // this->dropdownMenu.addSeparator();
// this->dropdownMenu.addAction("Show changelog", this, SLOT(menuShowChangelog())); // this->dropdownMenu.addAction("Show changelog", this, SLOT(menuShowChangelog()));
// clang-format on // clang-format on