#6471 Added Pending retry state

This commit is contained in:
Jamie Newbon 2019-04-30 11:42:34 +01:00
parent 6870af8eb7
commit 6f17cb9a31
No known key found for this signature in database
GPG Key ID: 9618C9BB2FF44DB5
2 changed files with 4 additions and 2 deletions

View File

@ -914,6 +914,7 @@ void MainWindow::synergyFinished(int exitCode, QProcess::ExitStatus)
if (m_ExpectedRunningState == kStarted) {
QTimer::singleShot(1000, this, SLOT(startSynergy()));
appendLogInfo(QString("detected process not running, auto restarting"));
setSynergyState(synergyPendingRetry);
}
else {
setSynergyState(synergyDisconnected);
@ -932,7 +933,7 @@ void MainWindow::setSynergyState(qSynergyState state)
if (synergyState() == state)
return;
if ((state == synergyConnected) || (state == synergyListening))
if ((state == synergyConnected) || (state == synergyConnecting) || (state == synergyListening) || (state == synergyPendingRetry))
{
disconnect (m_pButtonToggleStart, SIGNAL(clicked()), m_pActionStartSynergy, SLOT(trigger()));
connect (m_pButtonToggleStart, SIGNAL(clicked()), m_pActionStopSynergy, SLOT(trigger()));

View File

@ -73,7 +73,8 @@ class MainWindow : public QMainWindow, public Ui::MainWindowBase
synergyDisconnected,
synergyConnecting,
synergyConnected,
synergyListening
synergyListening,
synergyPendingRetry
};
enum qSynergyType