fix: switch default profile to terminal and fixed some comments

This commit is contained in:
objz committed 2026-04-18 19:44:59 +02:00
1 parent 971375bf1f
commit 52787b57c7
71 files changed
+671 -188

No files matched your search

+8
View File
@@ -1,3 +1,8 @@
// app state: holds everything the TUI needs between frames.
// this is basically the "god struct" of the UI. not ideal, but ratatui
// kinda pushes you into this pattern since you need mutable access
// to all the widget states during rendering.
use std::collections::HashMap;
use std::sync::{Arc, LazyLock, Mutex};
@@ -6,6 +11,8 @@ use tachyonfx::Effect;
use super::widgets::{self, instances};
use crate::instance::{InstanceConfig, InstanceManager};
// background tasks (instance creation, import) push completed configs here
// so the main loop can pick them up without blocking
pub(super) static PENDING_INSTANCES: LazyLock<Arc<Mutex<Vec<InstanceConfig>>>> =
LazyLock::new(|| Arc::new(Mutex::new(Vec::new())));
@@ -34,6 +41,7 @@ pub struct App {
pub(super) pending_editor: Option<std::path::PathBuf>,
}
// lifecycle of an error toast animation: slide in -> sit there -> fade out
pub(super) enum ErrorEffectState {
SlidingIn(Effect, std::time::Instant),
Idle,