Terminal: Lazily open remote terminals

Move the burden of finding the shell of a device from the shell menu
to the TerminalWidget, so that opening the shell menu does not block
the ui.

Change-Id: I7f2e5a891f20faa53a1e3eec879866219f9bee0b
Reviewed-by: hjk <hjk@qt.io>
This commit is contained in:
Marcus Tillmanns
2023-08-10 06:44:27 +02:00
parent d611fe6821
commit 92355bf40d
7 changed files with 60 additions and 38 deletions

View File

@@ -16,6 +16,10 @@
#include <utils/process.h>
#include <utils/terminalhooks.h>
#include <QFutureWatcher>
#include <memory>
namespace Terminal {
using RegisteredAction = std::unique_ptr<QAction, std::function<void(QAction *)>>;
@@ -105,6 +109,8 @@ private:
RegisteredAction m_close;
Internal::ShortcutMap m_shortcutMap;
std::unique_ptr<QFutureWatcher<Utils::FilePath>> m_findShellWatcher;
};
} // namespace Terminal