mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-03-22 06:45:37 +08:00
refactor: Minor cleanup
This commit is contained in:
@@ -816,7 +816,7 @@ namespace swift::core
|
||||
usedModelString.clear();
|
||||
CCallsign::addLogDetailsToList(
|
||||
pReverseLookupMessages, callsign,
|
||||
QStringLiteral("FsInn modelstring '%1' ignored because of setuo").arg(modelString));
|
||||
QStringLiteral("FsInn modelstring '%1' ignored because of setup").arg(modelString));
|
||||
}
|
||||
else if (!CAircraftMatcher::isKnownModelString(modelString, callsign, pReverseLookupMessages))
|
||||
{
|
||||
|
||||
@@ -299,7 +299,6 @@ namespace swift::gui::components
|
||||
{
|
||||
if (!m_updatePilotOnServerChanges) { return; }
|
||||
const bool vatsim = this->isVatsimNetworkTabSelected();
|
||||
// const CUser user = vatsim ? this->getCurrentVatsimServer().getUser() : server.getUser();
|
||||
const CUser user =
|
||||
server.getServerType() != CServer::FSDServer ? this->getCurrentVatsimServer().getUser() : server.getUser();
|
||||
if ((vatsim && server.getServerType() != CServer::FSDServer) ||
|
||||
@@ -403,7 +402,7 @@ namespace swift::gui::components
|
||||
{
|
||||
int v = ui->pb_LogoffTimeout->value();
|
||||
v -= 1;
|
||||
v = std::max(v, 0);
|
||||
if (v < 0) { v = 0; }
|
||||
ui->pb_LogoffTimeout->setValue(v);
|
||||
if (v <= 0)
|
||||
{
|
||||
|
||||
@@ -164,6 +164,9 @@
|
||||
<property name="text">
|
||||
<string>all shown below</string>
|
||||
</property>
|
||||
<property name="checked">
|
||||
<bool>true</bool>
|
||||
</property>
|
||||
<attribute name="buttonGroup">
|
||||
<string notr="true">bg_Distributors</string>
|
||||
</attribute>
|
||||
@@ -194,9 +197,6 @@
|
||||
<property name="text">
|
||||
<string>all distributors</string>
|
||||
</property>
|
||||
<property name="checked">
|
||||
<bool>true</bool>
|
||||
</property>
|
||||
<attribute name="buttonGroup">
|
||||
<string notr="true">bg_Distributors</string>
|
||||
</attribute>
|
||||
|
||||
@@ -81,7 +81,7 @@ namespace swift::gui::models
|
||||
|
||||
case OwnAircraftModelMappingTool:
|
||||
case StashModel:
|
||||
m_columns.addColumn(CColumn::standardString("model", CAircraftModel::IndexModelString));
|
||||
m_columns.addColumn(CColumn::standardString("model", { CAircraftModel::IndexModelString }));
|
||||
m_columns.addColumn(
|
||||
CColumn("DB", "DB metadata", CAircraftModel::IndexDatabaseIcon, new CPixmapFormatter()));
|
||||
if (mode == StashModel)
|
||||
|
||||
Reference in New Issue
Block a user