mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-03-22 14:55:36 +08:00
Issue #115 Blink connect button in addition to disconnect button
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -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 = {});
|
||||
|
||||
Reference in New Issue
Block a user