//! Clearing the session when the panel closes.
use ;
use crate;
/// Forget the session, and unpress the icon when the platform left it pressed.
///
/// The read takes the record, so the reset happens at most once per panel close:
/// a second `dismiss` - the scrim's second click, or one that arrives after the
/// tray already closed the panel - finds no session and touches nothing.
///
/// A right or middle click is the only one worth repairing. A left click's own
/// `mouseUp` clears the highlight inside the platform, and a close with no
/// session behind it has no highlight to clear, so neither is worth making the
/// icon blink.