Added ability to toggle visibility of tabs (#2600)

This can be done by right-clicking the tab area or pressing the keyboard shortcut (default: Ctrl+U).

Co-authored-by: Leon Richardt <leon.richardt@gmail.com>
Co-authored-by: Rasmus Karlsson <rasmus.karlsson@pajlada.com>
This commit is contained in:
Paweł
2021-05-30 13:39:34 +02:00
committed by GitHub
parent 01bda9c2f6
commit 57354283ec
7 changed files with 188 additions and 87 deletions
+6
View File
@@ -73,6 +73,12 @@ NotebookTab::NotebookTab(Notebook *notebook)
this->highlightEnabled_ = checked;
});
this->menu_.addAction(highlightNewMessagesAction_);
this->menu_.addSeparator();
this->menu_.addAction("Toggle visibility of tabs", [this]() {
this->notebook_->setShowTabs(!this->notebook_->getShowTabs());
});
}
void NotebookTab::showRenameDialog()