forked from qt-creator/qt-creator
ConsoleProcess: Make setSettings() a static member
Since it's not possible to use directly ICore::settings() inside Utils lib, make setSettings() a static member. This simplifies the API of other static methods. Set the settings just once now, inside main(). Change-Id: I2bcc58d4d29b5aba4a1a21a98a9f4245b24b530f Reviewed-by: <github-actions-qt-creator@cristianadam.eu> Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org> Reviewed-by: hjk <hjk@qt.io>
This commit is contained in:
@@ -209,13 +209,8 @@ void TerminalRunner::start()
|
||||
|
||||
m_stubProc.setEnvironment(stub.environment);
|
||||
m_stubProc.setWorkingDirectory(stub.workingDirectory);
|
||||
|
||||
if (HostOsInfo::isWindowsHost()) {
|
||||
m_stubProc.setMode(ConsoleProcess::Suspend);
|
||||
} else {
|
||||
m_stubProc.setMode(ConsoleProcess::Debug);
|
||||
m_stubProc.setSettings(Core::ICore::settings());
|
||||
}
|
||||
m_stubProc.setMode(HostOsInfo::isWindowsHost() ? ConsoleProcess::Suspend
|
||||
: ConsoleProcess::Debug);
|
||||
|
||||
// Error message for user is delivered via a signal.
|
||||
m_stubProc.setCommand(stub.command);
|
||||
|
||||
Reference in New Issue
Block a user