mirror of
https://github.com/ciphervance/supercell-wx.git
synced 2025-10-30 20:00:05 +00:00
Don't display expired alerts
This commit is contained in:
parent
39ac115b62
commit
b9fc22d63e
1 changed files with 6 additions and 0 deletions
|
|
@ -298,6 +298,12 @@ void AlertLayerHandler::HandleAlert(const types::TextEventKey& key,
|
|||
auto eventEnd = vtec.pVtec_.event_end();
|
||||
bool alertActive = (action != awips::PVtec::Action::Canceled);
|
||||
|
||||
// If the event has ended, skip it
|
||||
if (eventEnd < std::chrono::system_clock::now())
|
||||
{
|
||||
continue;
|
||||
}
|
||||
|
||||
auto featureList = FeatureList(phenomenon, alertActive);
|
||||
if (featureList != nullptr)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue