mirror of
https://github.com/saymrwulf/xous-core.git
synced 2026-11-17 08:40:52 +00:00
add a screen to indicate when databases are reloading
since the operation can take quite a while
This commit is contained in:
parent
567d9db2cd
commit
6bb5569c9f
3 changed files with 10 additions and 1 deletions
|
|
@ -447,6 +447,13 @@
|
||||||
"ja": "USB機能を切り替え中...",
|
"ja": "USB機能を切り替え中...",
|
||||||
"zh": "切换 USB 功能..."
|
"zh": "切换 USB 功能..."
|
||||||
},
|
},
|
||||||
|
"vault.reloading_database": {
|
||||||
|
"en": "Reloading database...",
|
||||||
|
"en-tts": "Reloading database...",
|
||||||
|
"fr": "Rechargement de la base de données...*MT*",
|
||||||
|
"ja": "データベースをリロードしています...",
|
||||||
|
"zh": "正在重新加载数据库..."
|
||||||
|
},
|
||||||
"vault.select_font": {
|
"vault.select_font": {
|
||||||
"en": "Select a font style",
|
"en": "Select a font style",
|
||||||
"en-tts": "Select a font style",
|
"en-tts": "Select a font style",
|
||||||
|
|
|
||||||
|
|
@ -872,6 +872,7 @@ impl<'a> ActionManager<'a> {
|
||||||
/// - `format!()` is very slow, so we use `push_str()` where possible
|
/// - `format!()` is very slow, so we use `push_str()` where possible
|
||||||
/// - allocations are slow, so we try to avoid them at all costs
|
/// - allocations are slow, so we try to avoid them at all costs
|
||||||
pub(crate) fn retrieve_db(&mut self) {
|
pub(crate) fn retrieve_db(&mut self) {
|
||||||
|
self.modals.dynamic_notification(Some(t!("vault.reloading_database", xous::LANG)), None).ok();
|
||||||
#[cfg(feature="vaultperf")]
|
#[cfg(feature="vaultperf")]
|
||||||
self.pm.stop_and_reset();
|
self.pm.stop_and_reset();
|
||||||
#[cfg(feature="vaultperf")]
|
#[cfg(feature="vaultperf")]
|
||||||
|
|
@ -1153,6 +1154,7 @@ impl<'a> ActionManager<'a> {
|
||||||
}
|
}
|
||||||
self.item_lists.lock().unwrap().filter_reset(self.mode_cache);
|
self.item_lists.lock().unwrap().filter_reset(self.mode_cache);
|
||||||
log::debug!("heap usage B: {}", heap_usage());
|
log::debug!("heap usage B: {}", heap_usage());
|
||||||
|
self.modals.dynamic_notification_close().ok();
|
||||||
#[cfg(feature="vaultperf")]
|
#[cfg(feature="vaultperf")]
|
||||||
{
|
{
|
||||||
self.perfentry(&self.pm, PERFMETA_ENDBLOCK, 0, std::line!());
|
self.perfentry(&self.pm, PERFMETA_ENDBLOCK, 0, std::line!());
|
||||||
|
|
|
||||||
|
|
@ -113,7 +113,7 @@ const ERR_TIMEOUT_MS: usize = 5000;
|
||||||
|
|
||||||
fn main() -> ! {
|
fn main() -> ! {
|
||||||
log_server::init_wait().unwrap();
|
log_server::init_wait().unwrap();
|
||||||
log::set_max_level(log::LevelFilter::Debug);
|
log::set_max_level(log::LevelFilter::Info);
|
||||||
log::info!("my PID is {}", xous::process::id());
|
log::info!("my PID is {}", xous::process::id());
|
||||||
|
|
||||||
let xns = xous_names::XousNames::new().unwrap();
|
let xns = xous_names::XousNames::new().unwrap();
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue