diff --git a/src/swiftlauncher/swiftlauncher.cpp b/src/swiftlauncher/swiftlauncher.cpp index 18155c72d..ca1f1e66a 100644 --- a/src/swiftlauncher/swiftlauncher.cpp +++ b/src/swiftlauncher/swiftlauncher.cpp @@ -80,16 +80,14 @@ CSwiftLauncher::CSwiftLauncher(QWidget *parent) : m_checkTimer.setInterval(2500); m_checkTimer.start(); - // auto launch wizard - if (sGui->isInstallerOptionSet()) + // auto launch wizard nd other init parts + const QPointer myself(this); + QTimer::singleShot(2500, this, [ = ] { - const QPointer myself(this); - QTimer::singleShot(2500, this, [ = ] - { - if (!sGui || sGui->isShuttingDown() || !myself) { return; } - myself->startWizard(); - }); - } + if (!sGui || sGui->isShuttingDown() || !myself) { return; } + this->onCoreModeReleased(); + if (sGui->isInstallerOptionSet()) { myself->startWizard(); } + }); } CSwiftLauncher::~CSwiftLauncher() @@ -491,8 +489,9 @@ void CSwiftLauncher::checkRunningApplicationsAndCore() const bool foundLocalCore = runningApps.containsApplication(CApplicationInfo::PilotClientCore); const bool foundLocalMappingTool = runningApps.containsApplication(CApplicationInfo::MappingTool); const bool foundLocalPilotClientGui = runningApps.containsApplication(CApplicationInfo::PilotClientGui); + const bool standalone = ui->rb_SwiftStandalone->isChecked(); - ui->tb_SwiftCore->setEnabled(!foundLocalCore && m_startCoreWaitCycles < 1); + ui->tb_SwiftCore->setEnabled(!standalone && !foundLocalCore && m_startCoreWaitCycles < 1); ui->tb_SwiftMappingTool->setEnabled(!foundLocalMappingTool && m_startMappingToolWaitCycles < 1); ui->tb_SwiftGui->setEnabled(!foundLocalPilotClientGui && m_startGuiWaitCycles < 1); } @@ -521,7 +520,9 @@ void CSwiftLauncher::onDBusEditingFinished() void CSwiftLauncher::onCoreModeReleased() { - ui->comp_DBusSelector->setEnabled(!ui->rb_SwiftStandalone->isChecked()); + const bool sa = ui->rb_SwiftStandalone->isChecked(); + ui->comp_DBusSelector->setEnabled(!sa); + ui->tb_SwiftCore->setEnabled(!sa); this->saveSetup(); } diff --git a/src/swiftlauncher/swiftlauncher.ui b/src/swiftlauncher/swiftlauncher.ui index f7badfd61..162336a0d 100644 --- a/src/swiftlauncher/swiftlauncher.ui +++ b/src/swiftlauncher/swiftlauncher.ui @@ -88,7 +88,7 @@ - 3 + 2 6 @@ -99,7 +99,7 @@ 0 0 392 - 275 + 309 @@ -130,7 +130,7 @@ 0 0 392 - 275 + 309 @@ -194,8 +194,8 @@ 0 0 - 371 - 298 + 392 + 309 @@ -297,7 +297,7 @@ - DBus + DBus (swift core/GUI, NOT XSwiftBus) @@ -361,7 +361,7 @@ 0 0 392 - 275 + 309 @@ -442,8 +442,8 @@ 0 0 - 380 - 94 + 376 + 126 @@ -494,7 +494,7 @@ 0 0 392 - 275 + 309 @@ -537,7 +537,7 @@ 0 0 392 - 144 + 151