tooltip raw text, inline translation fallback support

This commit is contained in:
Aleksander
2026-01-05 01:05:56 +01:00
parent 4dd7c85e79
commit b86525d65d
4 changed files with 35 additions and 15 deletions

View File

@@ -198,17 +198,22 @@ impl AppList {
tasks: &Tasks<Task>,
parser_state: &mut ParserState,
) -> anyhow::Result<()> {
if let Some(entry) = self.entries_to_mount.pop_front() {
let globals = frontend.layout.state.globals.clone();
let button = self.mount_entry(frontend, parser_state, &doc_params(globals.clone()), &entry)?;
// load 4 entries for a single frame at most
for _ in 0..4 {
if let Some(entry) = self.entries_to_mount.pop_front() {
let globals = frontend.layout.state.globals.clone();
let button = self.mount_entry(frontend, parser_state, &doc_params(globals.clone()), &entry)?;
button.on_click(on_app_click(
frontend.tasks.clone(),
globals.clone(),
entry.clone(),
state.clone(),
tasks.clone(),
));
button.on_click(on_app_click(
frontend.tasks.clone(),
globals.clone(),
entry.clone(),
state.clone(),
tasks.clone(),
));
} else {
break;
}
}
Ok(())