#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) {
|
if (m_ExpectedRunningState == kStarted) {
|
||||||
QTimer::singleShot(1000, this, SLOT(startSynergy()));
|
QTimer::singleShot(1000, this, SLOT(startSynergy()));
|
||||||
appendLogInfo(QString("detected process not running, auto restarting"));
|
appendLogInfo(QString("detected process not running, auto restarting"));
|
||||||
|
setSynergyState(synergyPendingRetry);
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
setSynergyState(synergyDisconnected);
|
setSynergyState(synergyDisconnected);
|
||||||
|
@ -932,7 +933,7 @@ void MainWindow::setSynergyState(qSynergyState state)
|
||||||
if (synergyState() == state)
|
if (synergyState() == state)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
if ((state == synergyConnected) || (state == synergyListening))
|
if ((state == synergyConnected) || (state == synergyConnecting) || (state == synergyListening) || (state == synergyPendingRetry))
|
||||||
{
|
{
|
||||||
disconnect (m_pButtonToggleStart, SIGNAL(clicked()), m_pActionStartSynergy, SLOT(trigger()));
|
disconnect (m_pButtonToggleStart, SIGNAL(clicked()), m_pActionStartSynergy, SLOT(trigger()));
|
||||||
connect (m_pButtonToggleStart, SIGNAL(clicked()), m_pActionStopSynergy, SLOT(trigger()));
|
connect (m_pButtonToggleStart, SIGNAL(clicked()), m_pActionStopSynergy, SLOT(trigger()));
|
||||||
|
|
|
@ -73,7 +73,8 @@ class MainWindow : public QMainWindow, public Ui::MainWindowBase
|
||||||
synergyDisconnected,
|
synergyDisconnected,
|
||||||
synergyConnecting,
|
synergyConnecting,
|
||||||
synergyConnected,
|
synergyConnected,
|
||||||
synergyListening
|
synergyListening,
|
||||||
|
synergyPendingRetry
|
||||||
};
|
};
|
||||||
|
|
||||||
enum qSynergyType
|
enum qSynergyType
|
||||||
|
|
Loading…
Reference in New Issue