mirror of
https://github.com/ciphervance/supercell-wx.git
synced 2025-10-30 15:10:06 +00:00
Applying product load status to level 2
This commit is contained in:
parent
403a556b30
commit
b0c7554f47
2 changed files with 107 additions and 13 deletions
|
|
@ -210,6 +210,22 @@ void Level2ProductView::ConnectRadarProductManager()
|
|||
Update();
|
||||
}
|
||||
});
|
||||
|
||||
connect(radar_product_manager().get(),
|
||||
&manager::RadarProductManager::ProductTimesPopulated,
|
||||
this,
|
||||
[this](common::RadarProductGroup group,
|
||||
const std::string& /* product */,
|
||||
std::chrono::system_clock::time_point queryTime)
|
||||
{
|
||||
if (group == common::RadarProductGroup::Level2 &&
|
||||
queryTime == selected_time())
|
||||
{
|
||||
// If the data associated with the currently selected time is
|
||||
// reloaded, update the view
|
||||
Update();
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
void Level2ProductView::DisconnectRadarProductManager()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue