forked from qt-creator/qt-creator
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user