Add feature to duplicate tabs (#5277)

Co-authored-by: Rasmus Karlsson <rasmus.karlsson@pajlada.com>
This commit is contained in:
KleberPF
2024-05-25 09:39:19 -03:00
committed by GitHub
parent c5802a0f49
commit d161036b18
8 changed files with 158 additions and 3 deletions
+4
View File
@@ -99,6 +99,10 @@ NotebookTab::NotebookTab(Notebook *notebook)
getIApp()->getHotkeys()->getDisplaySequence(HotkeyCategory::Window,
"popup", {{"window"}}));
this->menu_.addAction("Duplicate Tab", [this]() {
this->notebook_->duplicatePage(this->page);
});
highlightNewMessagesAction_ =
new QAction("Mark Tab as Unread on New Messages", &this->menu_);
highlightNewMessagesAction_->setCheckable(true);