mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-03-23 07:15:35 +08:00
[Weather] Message that "real weather is loading"
This commit is contained in:
committed by
Mat Sutcliffe
parent
8f5e24fe0b
commit
170da452ee
@@ -42,7 +42,7 @@ namespace BlackGui
|
||||
namespace Components
|
||||
{
|
||||
CWeatherComponent::CWeatherComponent(QWidget *parent) :
|
||||
QWidget(parent),
|
||||
COverlayMessagesFrameEnableForDockWidgetInfoArea(parent),
|
||||
CIdentifiable(this),
|
||||
ui(new Ui::CWeatherComponent)
|
||||
{
|
||||
@@ -215,8 +215,9 @@ namespace BlackGui
|
||||
if (m_lastOwnAircraftPosition.isNull() ||
|
||||
calculateGreatCircleDistance(position, m_lastOwnAircraftPosition).value(CLengthUnit::km()) > 20)
|
||||
{
|
||||
requestWeatherGrid(position);
|
||||
this->requestWeatherGrid(position);
|
||||
m_lastOwnAircraftPosition = position;
|
||||
showOverlayHTMLMessage("Weather loading,<br>this may take a while", 7500);
|
||||
}
|
||||
}
|
||||
else
|
||||
@@ -234,6 +235,7 @@ namespace BlackGui
|
||||
if (!CWeatherScenario::isRealWeatherScenario(scenario)) { return; }
|
||||
|
||||
// we have received weather grid data and assume those are real weather updates
|
||||
closeOverlay();
|
||||
}
|
||||
ui->lbl_Status->setText({});
|
||||
setWeatherGrid(weatherGrid);
|
||||
|
||||
@@ -40,8 +40,7 @@ namespace BlackGui
|
||||
{
|
||||
//! Weather component
|
||||
class BLACKGUI_EXPORT CWeatherComponent :
|
||||
public QWidget,
|
||||
public CEnableForDockWidgetInfoArea,
|
||||
public COverlayMessagesFrameEnableForDockWidgetInfoArea,
|
||||
public BlackMisc::CIdentifiable
|
||||
{
|
||||
Q_OBJECT
|
||||
|
||||
Reference in New Issue
Block a user