refactor: MainWindow::coreProcessStarting move logic into coreProcessStateChanged

This commit is contained in:
sithlord48
2025-10-10 19:03:32 -04:00
committed by Chris Rizzitello
parent f9c007cc3a
commit a057437e1a
2 changed files with 4 additions and 10 deletions

View File

@ -688,14 +688,6 @@ void MainWindow::open()
}
}
void MainWindow::coreProcessStarting()
{
if (deskflow::platform::isWayland()) {
m_waylandWarnings.showOnce(this);
}
saveSettings();
}
void MainWindow::setStatus(const QString &status)
{
m_lblStatus->setText(status);
@ -994,7 +986,10 @@ void MainWindow::coreProcessStateChanged(CoreProcessState state)
m_actionStopCore->setEnabled(true);
if (state == CoreProcessState::Starting) {
coreProcessStarting();
if (deskflow::platform::isWayland()) {
m_waylandWarnings.showOnce(this);
}
saveSettings();
}
} else {

View File

@ -95,7 +95,6 @@ private:
void settingsChanged(const QString &key = QString());
void serverConfigSaving();
void coreProcessStarting();
void coreProcessError(CoreProcess::Error error);
void coreConnectionStateChanged(CoreProcess::ConnectionState state);
void coreProcessStateChanged(CoreProcess::ProcessState state);