mirror of
https://github.com/Chatterino/chatterino2.git
synced 2024-11-13 19:49:51 +01:00
Move "How to" options to their own sub-menu
This commit is contained in:
parent
e253208ebd
commit
628c64d138
|
@ -252,9 +252,6 @@ std::unique_ptr<QMenu> SplitHeader::createMainMenu()
|
||||||
menu->addAction("Close", this->split_, &Split::deleteFromContainer,
|
menu->addAction("Close", this->split_, &Split::deleteFromContainer,
|
||||||
QKeySequence("Ctrl+W"));
|
QKeySequence("Ctrl+W"));
|
||||||
menu->addSeparator();
|
menu->addSeparator();
|
||||||
menu->addAction("How to move", this->split_, &Split::explainMoving);
|
|
||||||
menu->addAction("How to add/split", this->split_, &Split::explainSplitting);
|
|
||||||
menu->addSeparator();
|
|
||||||
menu->addAction("Popup", this->split_, &Split::popup);
|
menu->addAction("Popup", this->split_, &Split::popup);
|
||||||
menu->addAction("Search", this->split_, &Split::showSearch,
|
menu->addAction("Search", this->split_, &Split::showSearch,
|
||||||
QKeySequence("Ctrl+F"));
|
QKeySequence("Ctrl+F"));
|
||||||
|
@ -282,6 +279,14 @@ std::unique_ptr<QMenu> SplitHeader::createMainMenu()
|
||||||
menu->addAction(OPEN_IN_STREAMLINK, this->split_, &Split::openInStreamlink);
|
menu->addAction(OPEN_IN_STREAMLINK, this->split_, &Split::openInStreamlink);
|
||||||
menu->addSeparator();
|
menu->addSeparator();
|
||||||
|
|
||||||
|
{
|
||||||
|
// "How to..." sub menu
|
||||||
|
auto subMenu = new QMenu("How to...", this);
|
||||||
|
subMenu->addAction("move split", this->split_, &Split::explainMoving);
|
||||||
|
subMenu->addAction("add/split", this->split_, &Split::explainSplitting);
|
||||||
|
menu->addMenu(subMenu);
|
||||||
|
}
|
||||||
|
|
||||||
// sub menu
|
// sub menu
|
||||||
auto moreMenu = new QMenu("More", this);
|
auto moreMenu = new QMenu("More", this);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue