mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-12 23:35:33 +08:00
Minor fixes in login component
This commit is contained in:
@@ -214,11 +214,13 @@ namespace BlackGui
|
|||||||
|
|
||||||
void CLoginComponent::toggleNetworkConnection()
|
void CLoginComponent::toggleNetworkConnection()
|
||||||
{
|
{
|
||||||
if (ui->tw_Network->currentWidget() == ui->pg_FsdDetails)
|
if (!sGui || sGui->isShuttingDown()) { return; }
|
||||||
|
if (ui->tw_Network->currentWidget() != ui->pg_NetworkVatsim && ui->tw_Network->currentWidget() != ui->pg_OtherServers)
|
||||||
{
|
{
|
||||||
this->showOverlayMessage(CStatusMessage(this).validationError("No login possible from this very tab, use VATSIM or other servers"), OverlayMessageMs);
|
this->showOverlayMessage(CStatusMessage(this).validationError("No login possible from this very tab, use VATSIM or other servers"), OverlayMessageMs);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
const bool isConnected = sGui && sGui->getIContextNetwork()->isConnected();
|
const bool isConnected = sGui && sGui->getIContextNetwork()->isConnected();
|
||||||
const bool vatsimLogin = this->isVatsimNetworkTabSelected();
|
const bool vatsimLogin = this->isVatsimNetworkTabSelected();
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user