fn press_for(
state: &AppState,
kind: NotifyKind,
block_id: &str,
request_id: &str,
action: &str,
proof: Option<&str>,
) -> Option<String>Expand description
The press on a pending shutdown toast’s cancel (keep) or do-it-now (now) button.
Cancelling a shutdown is the safe direction: it leaves things as they are, so it needs no proof,
as before. Everything else is the person’s: ending a wait early, and any decision on a sensitive
operation (its veto is the window’s alone, or this launcher’s). Those need the launcher’s proof;
without it the press is refused and the countdown goes on.