mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-12 15:25:34 +08:00
refs #199, simpflified runtime init
This commit is contained in:
@@ -168,14 +168,11 @@ void MainWindow::init(GuiModes::CoreMode coreMode)
|
|||||||
if (this->m_timerSimulator == nullptr) this->m_timerSimulator = new QTimer(this);
|
if (this->m_timerSimulator == nullptr) this->m_timerSimulator = new QTimer(this);
|
||||||
|
|
||||||
// context
|
// context
|
||||||
if (this->m_coreMode != GuiModes::CoreInGuiProcess)
|
this->m_rt.reset(
|
||||||
{
|
this->m_coreMode != GuiModes::CoreInGuiProcess ?
|
||||||
this->m_rt.reset(new CRuntime(CRuntimeConfig::remote(), this));
|
new CRuntime(CRuntimeConfig::remote(), this) :
|
||||||
}
|
new CRuntime(CRuntimeConfig::local(), this)
|
||||||
else
|
);
|
||||||
{
|
|
||||||
this->m_rt.reset(new CRuntime(CRuntimeConfig::local(), this));
|
|
||||||
}
|
|
||||||
|
|
||||||
// wire GUI signals
|
// wire GUI signals
|
||||||
this->initGuiSignals();
|
this->initGuiSignals();
|
||||||
|
|||||||
Reference in New Issue
Block a user