refactor: MainWindow::coreProcessStarting move logic into coreProcessStateChanged
This commit is contained in:
committed by
Chris Rizzitello
parent
f9c007cc3a
commit
a057437e1a
@ -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 {
|
||||
|
||||
@ -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);
|
||||
|
||||
Reference in New Issue
Block a user