mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-22 21:35:40 +08:00
refactor(ui): Do not allow to overwrite FSD settings from connect page
Overwriting FSD settings from the connect page (instead of changing the server settings itself) introduced some complexity in the UI. As spontaniously changing the FSD settings is likely a VERY rare use-case and to simplify the logic/UI, it should only be done from the server settings itself.
This commit is contained in:
@@ -81,9 +81,6 @@ namespace BlackGui::Components
|
||||
this->setForceSmall(true);
|
||||
this->showKillButton(false);
|
||||
|
||||
// override details
|
||||
ui->comp_NetworkDetails->setAlwaysAllowOverride(true);
|
||||
|
||||
// Stored data
|
||||
this->loadRememberedUserData();
|
||||
|
||||
@@ -156,13 +153,6 @@ namespace BlackGui::Components
|
||||
const CUser user = this->getUserFromPilotGuiValues();
|
||||
currentServer.setUser(user);
|
||||
|
||||
// FSD setup, then override
|
||||
if (ui->comp_NetworkDetails->isFsdSetupOverrideEnabled())
|
||||
{
|
||||
const CFsdSetup fsd = ui->comp_NetworkDetails->getFsdSetup();
|
||||
currentServer.setFsdSetup(fsd);
|
||||
}
|
||||
|
||||
// update for own aircraft context
|
||||
sGui->getIContextOwnAircraft()->updateOwnAircraftPilot(currentServer.getUser());
|
||||
|
||||
@@ -226,11 +216,6 @@ namespace BlackGui::Components
|
||||
}
|
||||
}
|
||||
|
||||
void CLoginAdvComponent::resetState()
|
||||
{
|
||||
ui->comp_NetworkDetails->resetState();
|
||||
}
|
||||
|
||||
void CLoginAdvComponent::loadRememberedUserData()
|
||||
{
|
||||
const CServer lastServer = m_networkSetup.getLastServer();
|
||||
|
||||
Reference in New Issue
Block a user