mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-03-23 15:25:35 +08:00
Minor fixes in login component
This commit is contained in:
@@ -214,11 +214,13 @@ namespace BlackGui
|
||||
|
||||
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);
|
||||
return;
|
||||
}
|
||||
|
||||
const bool isConnected = sGui && sGui->getIContextNetwork()->isConnected();
|
||||
const bool vatsimLogin = this->isVatsimNetworkTabSelected();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user