mirror of
https://github.com/saymrwulf/xous-core.git
synced 2026-11-15 08:30:02 +00:00
add logging to sigchat Event::Focus
This commit is contained in:
parent
5be8040e00
commit
90aec71d33
1 changed files with 7 additions and 1 deletions
|
|
@ -84,7 +84,13 @@ fn wrapped_main() -> ! {
|
|||
Some(Event::Focus) => {
|
||||
if first_focus {
|
||||
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();
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue