Issue #115 Blink connect button in addition to disconnect button

This commit is contained in:
Mat Sutcliffe
2021-11-13 19:27:59 +00:00
parent b46d4c7bb9
commit 2d62e90c54
2 changed files with 3 additions and 3 deletions

View File

@@ -202,7 +202,7 @@ namespace BlackGui::Components
this->setOwnModelAndIcaoValues();
const bool isConnected = sGui->getIContextNetwork()->isConnected();
this->setUiLoginState(isConnected);
if (isConnected) { this->blinkDisconnectButton(); }
this->blinkConnectButton();
}
// we decided to make it difficult for users to disable it
@@ -816,7 +816,7 @@ namespace BlackGui::Components
ui->pb_Ok->setText(s);
}
void CLoginComponent::blinkDisconnectButton()
void CLoginComponent::blinkConnectButton()
{
ui->pb_Ok->setProperty("blinkOn", true);
static constexpr int blinkLength = 100;

View File

@@ -196,7 +196,7 @@ namespace BlackGui::Components
void setUiLoginState(bool connected);
//! Make disconnect button flash briefly to catch the user's attention
void blinkDisconnectButton();
void blinkConnectButton();
//! Own model and ICAO data for GUI and own aircraft
void setOwnModelAndIcaoValues(const BlackMisc::Simulation::CAircraftModel &ownModel = {});