mirror of
https://github.com/ciphervance/supercell-wx.git
synced 2025-10-30 21:10:04 +00:00
Disable auto-refresh on file load
This commit is contained in:
parent
0b040e8b75
commit
b9531149de
4 changed files with 17 additions and 5 deletions
|
|
@ -356,6 +356,19 @@ void MapWidget::SetActive(bool isActive)
|
|||
update();
|
||||
}
|
||||
|
||||
void MapWidget::SetAutoRefresh(bool enabled)
|
||||
{
|
||||
if (p->autoRefreshEnabled_ != enabled)
|
||||
{
|
||||
p->autoRefreshEnabled_ = enabled;
|
||||
|
||||
if (p->autoRefreshEnabled_)
|
||||
{
|
||||
p->radarProductManager_->EnableLevel2Refresh(true);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
void MapWidget::SetMapParameters(
|
||||
double latitude, double longitude, double zoom, double bearing, double pitch)
|
||||
{
|
||||
|
|
@ -721,10 +734,7 @@ void MapWidgetImpl::SetRadarSite(const std::string& radarSite)
|
|||
radarProductManager_ = manager::RadarProductManager::Instance(radarSite);
|
||||
|
||||
// Connect signals to new RadarProductManager
|
||||
if (autoRefreshEnabled_)
|
||||
{
|
||||
AutoRefreshConnect();
|
||||
}
|
||||
AutoRefreshConnect();
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue