mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-21 04:45:31 +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">
|
<html><head><meta name="qrichtext" content="1" /><title>About swift</title><style type="text/css">
|
||||||
p, li { white-space: pre-wrap; }
|
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;">
|
</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>
|
||||||
<property name="openExternalLinks">
|
<property name="openExternalLinks">
|
||||||
<bool>true</bool>
|
<bool>true</bool>
|
||||||
|
|||||||
@@ -54,12 +54,14 @@ namespace BlackGui
|
|||||||
QPointer<CInterpolationSetupComponent> myself(this);
|
QPointer<CInterpolationSetupComponent> myself(this);
|
||||||
QTimer::singleShot(1000, this, [ = ]
|
QTimer::singleShot(1000, this, [ = ]
|
||||||
{
|
{
|
||||||
|
if (!sGui || sGui->isShuttingDown()) { return; }
|
||||||
if (myself.isNull()) { return; }
|
if (myself.isNull()) { return; }
|
||||||
this->onModeChanged();
|
this->onModeChanged();
|
||||||
});
|
});
|
||||||
|
|
||||||
QTimer::singleShot(30 * 1000, this, [ = ]
|
QTimer::singleShot(30 * 1000, this, [ = ]
|
||||||
{
|
{
|
||||||
|
if (!sGui || sGui->isShuttingDown()) { return; }
|
||||||
if (myself.isNull()) { return; }
|
if (myself.isNull()) { return; }
|
||||||
this->onSetupChanged();
|
this->onSetupChanged();
|
||||||
});
|
});
|
||||||
@@ -85,6 +87,7 @@ namespace BlackGui
|
|||||||
|
|
||||||
void CInterpolationSetupComponent::onModeChanged()
|
void CInterpolationSetupComponent::onModeChanged()
|
||||||
{
|
{
|
||||||
|
if (!sGui || sGui->isShuttingDown()) { return; }
|
||||||
bool enableCallsign = false;
|
bool enableCallsign = false;
|
||||||
if (this->getSetupMode() == CInterpolationSetupComponent::Global)
|
if (this->getSetupMode() == CInterpolationSetupComponent::Global)
|
||||||
{
|
{
|
||||||
@@ -237,6 +240,7 @@ namespace BlackGui
|
|||||||
|
|
||||||
void CInterpolationSetupComponent::onSetupChanged()
|
void CInterpolationSetupComponent::onSetupChanged()
|
||||||
{
|
{
|
||||||
|
if (!sGui || sGui->isShuttingDown()) { return; }
|
||||||
this->displaySetupsPerCallsign();
|
this->displaySetupsPerCallsign();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user