#6471 Added Pending retry state
This commit is contained in:
parent
6870af8eb7
commit
6f17cb9a31
|
@ -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()));
|
||||
|
|
|
@ -73,7 +73,8 @@ class MainWindow : public QMainWindow, public Ui::MainWindowBase
|
|||
synergyDisconnected,
|
||||
synergyConnecting,
|
||||
synergyConnected,
|
||||
synergyListening
|
||||
synergyListening,
|
||||
synergyPendingRetry
|
||||
};
|
||||
|
||||
enum qSynergyType
|
||||
|
|
Loading…
Reference in New Issue