mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-01 05:26:45 +08:00
Changed UI text for legal component and improved "guarding" for shutdown
This commit is contained in:
@@ -39,7 +39,7 @@
|
||||
<html><head><meta name="qrichtext" content="1" /><title>About swift</title><style type="text/css">
|
||||
p, li { white-space: pre-wrap; }
|
||||
</style></head><body style=" font-family:'MS Shell Dlg 2'; font-size:8.1pt; font-weight:400; font-style:normal;">
|
||||
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-size:8.25pt;">Credits will go here</span></p></body></html></string>
|
||||
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-size:14pt;">Loading credits and legal information, be patient ......</span></p></body></html></string>
|
||||
</property>
|
||||
<property name="openExternalLinks">
|
||||
<bool>true</bool>
|
||||
|
||||
@@ -54,12 +54,14 @@ namespace BlackGui
|
||||
QPointer<CInterpolationSetupComponent> myself(this);
|
||||
QTimer::singleShot(1000, this, [ = ]
|
||||
{
|
||||
if (!sGui || sGui->isShuttingDown()) { return; }
|
||||
if (myself.isNull()) { return; }
|
||||
this->onModeChanged();
|
||||
});
|
||||
|
||||
QTimer::singleShot(30 * 1000, this, [ = ]
|
||||
{
|
||||
if (!sGui || sGui->isShuttingDown()) { return; }
|
||||
if (myself.isNull()) { return; }
|
||||
this->onSetupChanged();
|
||||
});
|
||||
@@ -85,6 +87,7 @@ namespace BlackGui
|
||||
|
||||
void CInterpolationSetupComponent::onModeChanged()
|
||||
{
|
||||
if (!sGui || sGui->isShuttingDown()) { return; }
|
||||
bool enableCallsign = false;
|
||||
if (this->getSetupMode() == CInterpolationSetupComponent::Global)
|
||||
{
|
||||
@@ -237,6 +240,7 @@ namespace BlackGui
|
||||
|
||||
void CInterpolationSetupComponent::onSetupChanged()
|
||||
{
|
||||
if (!sGui || sGui->isShuttingDown()) { return; }
|
||||
this->displaySetupsPerCallsign();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user