From a2413b7b3477c6f1988794f8f171ab39fc8c8acf Mon Sep 17 00:00:00 2001 From: bunnie Date: Thu, 27 Apr 2023 20:53:20 +0800 Subject: [PATCH] fix #371 cheeseball fix -- just don't draw the "please wait" message when in hosted mode (because everything mounts so fast, by the time you put up the please wait message, it's time to clear it). --- services/shellchat/src/main.rs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/services/shellchat/src/main.rs b/services/shellchat/src/main.rs index a5de5a746..ceb2345a8 100644 --- a/services/shellchat/src/main.rs +++ b/services/shellchat/src/main.rs @@ -53,6 +53,7 @@ mod oqc_test; #[cfg(feature="nettest")] mod nettests; +#[cfg(target_os = "xous")] // only draw "please wait" when not in hosted mode use locales::t; #[cfg(feature="tts")] use tts_frontend::*; @@ -289,11 +290,12 @@ impl Repl{ } )).expect("can't clear content area"); } - fn redraw(&mut self, init_done: bool) -> Result<(), xous::Error> { + fn redraw(&mut self, _init_done: bool) -> Result<(), xous::Error> { log::trace!("going into redraw"); self.clear_area(); - if !init_done { + #[cfg(target_os = "xous")] // only draw "please wait" if we're not in hosted mode + if !_init_done { let mut init_tv = TextView::new( self.content, TextBounds::CenteredTop(