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
+4
View File
@@ -401,6 +401,10 @@ void Window::addShortcuts()
new QuickSwitcherPopup(&getApp()->windows->getMainWindow());
quickSwitcher->show();
});
createWindowShortcut(this, "CTRL+U", [this] {
this->notebook_->setShowTabs(!this->notebook_->getShowTabs());
});
}
void Window::addMenuBar()