add logging to sigchat Event::Focus

This commit is contained in:
nworbnhoj 2023-12-08 05:00:29 +11:00
parent 5be8040e00
commit 90aec71d33

View file

@ -84,7 +84,13 @@ fn wrapped_main() -> ! {
Some(Event::Focus) => { Some(Event::Focus) => {
if first_focus { if first_focus {
first_focus = false; first_focus = false;
sigchat.connect(); match sigchat.connect() {
Ok(true) => log::info!("connected to Signal Account"),
Ok(false) => log::info!("not connected to Signal Account"),
Err(e) => {
log::warn!("error while connecting to Signal Account: {e}")
}
}
} }
sigchat.redraw(); sigchat.redraw();
} }