cCloseAlwaysOnTopAlert function

void cCloseAlwaysOnTopAlert()

Closes and removes the currently displayed always-on-top alert.

This function removes the existing OverlayEntry used to display the alert, effectively closing it. If no alert is currently displayed, this function does nothing.

Implementation

void cCloseAlwaysOnTopAlert() {
  cAlertOverlayEntry?.remove();
  cAlertOverlayEntry = null;
}