Screenshot automation (--connect repeatable, --do, --answer, --shot-delay), SFTP Browser palette entry, centred dialogs, IRC opens the first joined room; demo_data example

This commit is contained in:
Andy Dixon
2026-10-11 19:41:30 +01:00
parent 84eff02c15
commit ce9c5c6b44
8 changed files with 262 additions and 13 deletions
+5
View File
@@ -191,7 +191,12 @@ impl IrcView {
pub fn on_event(&mut self, event: irc::Event) {
match route(&event) {
Route::Rooms => {
// Show the first room once auto-join lands, rather than leaving the server log up.
let first = self.joined.is_empty() && self.active == SERVER;
self.joined = event.rooms;
if first && let Some(r) = self.joined.first().map(|r| r.name.clone()) {
self.set_active(&r);
}
for r in self.joined.clone() {
self.target(&r.name);
}