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