Core: allow pinning documents from the editor toolbar

This is now inline with the context menu of the open documents view in
the open documents view in the side bar.

Change-Id: I026f94e0296d0704382bb49790226608503ef94f
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
This commit is contained in:
David Schulz
2024-07-04 12:22:04 +02:00
parent d30ddb101f
commit 5382d735fb

View File

@@ -383,6 +383,8 @@ void EditorView::fillListContextMenu(QMenu *menu) const
: nullptr;
EditorManager::addSaveAndCloseEditorActions(menu, entry, editor);
menu->addSeparator();
EditorManager::addPinEditorActions(menu, entry);
menu->addSeparator();
EditorManager::addNativeDirAndOpenWithActions(menu, entry);
}