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

@@ -85,14 +85,10 @@ public:
CreateTerminalProcessInterface createTerminalProcessInterface;
};
using GetTerminalCommandsForDevicesHook = Hook<QList<NameAndCommandLine>>;
public:
static Hooks &instance();
~Hooks();
GetTerminalCommandsForDevicesHook &getTerminalCommandsForDevicesHook();
void openTerminal(const OpenTerminalParameters &parameters) const;
ProcessInterface *createTerminalProcessInterface() const;