mirror of
https://invent.kde.org/system/dolphin
synced 2024-07-04 17:30:55 +00:00
Add 'Open Terminal Here' action from dolphin to menu
This commit is contained in:
parent
f46e630dda
commit
48fec6c9ec
|
@ -8,7 +8,7 @@ set (RELEASE_SERVICE_VERSION "${RELEASE_SERVICE_VERSION_MAJOR}.${RELEASE_SERVICE
|
|||
project(Dolphin VERSION ${RELEASE_SERVICE_VERSION})
|
||||
|
||||
set(QT_MIN_VERSION "5.14.0")
|
||||
set(KF5_MIN_VERSION "5.75.0")
|
||||
set(KF5_MIN_VERSION "5.77.0")
|
||||
|
||||
# ECM setup
|
||||
find_package(ECM ${KF5_MIN_VERSION} CONFIG REQUIRED)
|
||||
|
|
|
@ -341,7 +341,11 @@ void DolphinContextMenu::openViewportContextMenu()
|
|||
addSeparator();
|
||||
|
||||
// Insert service actions
|
||||
fileItemActions.addServiceActionsTo(this);
|
||||
QList<QAction *> additionalActions;
|
||||
if (baseUrlProperties.isDirectory() && baseUrlProperties.isLocal()) {
|
||||
additionalActions << m_mainWindow->actionCollection()->action(QStringLiteral("open_terminal"));
|
||||
}
|
||||
fileItemActions.addServiceActionsTo(this, additionalActions);
|
||||
fileItemActions.addPluginActionsTo(this);
|
||||
|
||||
addVersionControlPluginActions();
|
||||
|
|
Loading…
Reference in New Issue
Block a user