fix: Show first server start message only when start was successful

This commit is contained in:
Nick Bolton 2025-04-09 12:11:07 +01:00 committed by Chris Rizzitello
parent 7e4b6b82f4
commit 16ef088c27

View file

@ -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 ||