mirror of
https://github.com/saymrwulf/xous-core.git
synced 2026-11-18 08:52:45 +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) => {
|
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();
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue