diff --git a/crates/voelin-ui/src/dev.rs b/crates/voelin-ui/src/dev.rs index 37ac95f..8ae1142 100644 --- a/crates/voelin-ui/src/dev.rs +++ b/crates/voelin-ui/src/dev.rs @@ -216,6 +216,8 @@ pub(crate) fn start(ui: &MainWindow, switches: &Switches) -> Running { eprintln!("screenshot failed: {e}"); } let _ = ui.hide(); + // Also when the studio's own window is open. + let _ = slint::quit_event_loop(); } }, ); diff --git a/crates/voelin-ui/ui/screens/studio-parts.slint b/crates/voelin-ui/ui/screens/studio-parts.slint index 0345a98..45df2c9 100644 --- a/crates/voelin-ui/ui/screens/studio-parts.slint +++ b/crates/voelin-ui/ui/screens/studio-parts.slint @@ -979,14 +979,15 @@ export component StudioChat inherits StudioPanel { to-end := Timer { interval: 50ms; running: false; - // Twice: the rows at the end are measured after the first scroll. + // Again for a moment: rows are measured as they come into view, so + // the end moves while it is reached. triggered => { root.tries += 1; if chat-list.content-height > 0 { chat-list.content-y = min(0px, chat-list.visible-height - chat-list.content-height); root.passes += 1; } - if root.passes >= 2 || root.tries > 20 { + if root.passes >= 6 || root.tries > 30 { self.running = false; } }