diff options
| author | Egor Maksimov <[email protected]> | 2026-01-28 09:16:35 +0000 |
|---|---|---|
| committer | Méven Car <[email protected]> | 2026-01-28 09:16:35 +0000 |
| commit | ad73de758fc1b2c5a48004adfb06559732cc305e (patch) | |
| tree | eaa7f41f7b670ddc42ce557acefd7f7923a7b957 /src/panels/terminal/terminalpanel.h | |
| parent | 3ca892a70f0baf97c64ef87911dba502450184cf (diff) | |
panel/terminal: Add ability to disable konsole url sync
Sometimes when you work on the project using the build in konsole, most commands are meant to be run at the project root. This allows for user to disable URL sync so that one could browse the project tree without constantly needing go back to the root folder just to run a command.
BUG: 306381
Diffstat (limited to 'src/panels/terminal/terminalpanel.h')
| -rw-r--r-- | src/panels/terminal/terminalpanel.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/panels/terminal/terminalpanel.h b/src/panels/terminal/terminalpanel.h index 8eee3c10f..0aaf921c0 100644 --- a/src/panels/terminal/terminalpanel.h +++ b/src/panels/terminal/terminalpanel.h @@ -55,6 +55,8 @@ public: public Q_SLOTS: void terminalExited(); void dockVisibilityChanged(); + void switchSync(bool syncUrl); + void setSwitchTerminalUrlSyncAction(QAction *urlToggle); Q_SIGNALS: void hideTerminalPanel(); @@ -77,11 +79,13 @@ private: enum class HistoryPolicy { AddToHistory, SkipHistory }; void changeDir(const QUrl &url); + void emitUrlChanged(const QUrl &url); void sendCdToTerminal(const QString &path, HistoryPolicy addToHistory = HistoryPolicy::AddToHistory); void sendCdToTerminalKIOFuse(const QUrl &url); private: bool m_clearTerminal; + bool m_syncUrl; KIO::StatJob *m_mostLocalUrlJob; QVBoxLayout *m_layout; @@ -92,6 +96,7 @@ private: QString m_konsolePartCurrentDirectory; QQueue<QString> m_sendCdToTerminalHistory; org::kde::KIOFuse::VFS m_kiofuseInterface; + QAction *m_switchTerminalUrlSyncAction; }; #endif // TERMINALPANEL_H |
