From 16ef088c27272e773e501e7fc41966873adb64c2 Mon Sep 17 00:00:00 2001 From: Nick Bolton Date: Wed, 9 Apr 2025 12:11:07 +0100 Subject: [PATCH] fix: Show first server start message only when start was successful --- src/lib/gui/MainWindow.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/lib/gui/MainWindow.cpp b/src/lib/gui/MainWindow.cpp index 5b0d730eb0..12ee3af0fe 100644 --- a/src/lib/gui/MainWindow.cpp +++ b/src/lib/gui/MainWindow.cpp @@ -567,7 +567,6 @@ void MainWindow::updateModeControls(bool serverMode) if (!startedBefore && !m_coreProcess.isStarted()) { qDebug() << "auto-starting core server for first time"; m_coreProcess.start(); - messages::showFirstServerStartMessage(this); } } } @@ -922,9 +921,10 @@ void MainWindow::coreProcessStateChanged(CoreProcessState state) { updateStatus(); - if (state == CoreProcessState::Started) { + if (state == CoreProcessState::Started && !Settings::value(Settings::Core::StartedBefore).toBool()) { qDebug() << "recording that core has started"; Settings::setValue(Settings::Core::StartedBefore, true); + messages::showFirstServerStartMessage(this); } if (state == CoreProcessState::Started || state == CoreProcessState::Starting ||