chore: update dependencies

Also switches `alacritty_terminal` to use the crate version, rather than an old git commit.
This commit is contained in:
Vukašin Vojinović 2025-11-06 12:33:54 +01:00
parent d20dbadd02
commit 034435273c
5 changed files with 117 additions and 125 deletions

View file

@ -199,7 +199,7 @@ pub struct Profile {
#[serde(default)]
pub working_directory: String,
#[serde(default)]
pub hold: bool,
pub drain_on_exit: bool,
}
impl Default for Profile {
@ -211,7 +211,7 @@ impl Default for Profile {
syntax_theme_light: COSMIC_THEME_LIGHT.to_string(),
tab_title: String::new(),
working_directory: String::new(),
hold: false,
drain_on_exit: false,
}
}
}

View file

@ -1033,7 +1033,7 @@ impl App {
.spacing(space_xxxs)
.into(),
widget::horizontal_space().into(),
widget::toggler(profile.hold)
widget::toggler(profile.drain_on_exit)
.on_toggle(move |t| Message::ProfileHold(profile_id, t))
.into(),
])
@ -1309,7 +1309,7 @@ impl App {
let options = tty::Options {
shell,
working_directory,
hold: profile.hold,
drain_on_exit: profile.drain_on_exit,
env: HashMap::new(),
};
let tab_title_override = if profile.tab_title.is_empty() {
@ -2252,9 +2252,9 @@ impl Application for App {
Message::ProfileExpand(profile_id) => {
self.profile_expanded = Some(profile_id);
}
Message::ProfileHold(profile_id, hold) => {
Message::ProfileHold(profile_id, drain_on_exit) => {
if let Some(profile) = self.config.profiles.get_mut(&profile_id) {
profile.hold = hold;
profile.drain_on_exit = drain_on_exit;
return self.save_profiles();
}
}

View file

@ -328,7 +328,8 @@ impl Terminal {
let window_id = 0;
let pty = tty::new(&options, size.into(), window_id)?;
let pty_event_loop = EventLoop::new(term.clone(), event_proxy, pty, options.hold, false)?;
let pty_event_loop =
EventLoop::new(term.clone(), event_proxy, pty, options.drain_on_exit, false)?;
let notifier = Notifier(pty_event_loop.channel());
let _pty_join_handle = pty_event_loop.spawn();