Skip to main content

show_notice

Function show_notice 

Source
pub(crate) fn show_notice(
    qt: &CxxQtThread<Sioul>,
    title: &str,
    body: &str,
    offered: Vec<Offered>,
) -> Result<(), String>
Expand description

A closing notice (the end of work’s, the night’s), as the system shows it (docs/reviews.md, “The notices”): on Linux and macOS with its buttons (notify::remind_offering), each opening what it offers; on Windows through Sioul’s icon in the tray (main.qml’s onTrayNotice, Tray.qml), whose message carries no button: a click opens what the first one offers. A phone’s are its alarm’s (decide_work, health::decide_night).