mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-21 04:45:31 +08:00
fix: non-Vatsim users the login data for "other servers" was overwr. when starting the GUI
This commit is contained in:
@@ -298,8 +298,10 @@ namespace swift::gui::components
|
|||||||
{
|
{
|
||||||
if (!m_updatePilotOnServerChanges) { return; }
|
if (!m_updatePilotOnServerChanges) { return; }
|
||||||
const bool vatsim = this->isVatsimNetworkTabSelected();
|
const bool vatsim = this->isVatsimNetworkTabSelected();
|
||||||
const CUser user = vatsim ? this->getCurrentVatsimServer().getUser() : server.getUser();
|
// const CUser user = vatsim ? this->getCurrentVatsimServer().getUser() : server.getUser();
|
||||||
ui->form_Pilot->setUser(user);
|
const CUser user = server.getServerType() != 2 ? this->getCurrentVatsimServer().getUser() : server.getUser();
|
||||||
|
if ((vatsim && server.getServerType() != 2) || (!vatsim && server.getServerType() == 2))
|
||||||
|
ui->form_Pilot->setUser(user);
|
||||||
}
|
}
|
||||||
|
|
||||||
void CLoginComponent::onSimulatorStatusChanged(int status)
|
void CLoginComponent::onSimulatorStatusChanged(int status)
|
||||||
|
|||||||
Reference in New Issue
Block a user