A modern terminal with a built-in multiplexer: close it and your sessions keep running. Run shells and tons of AI agents across your machines, then pick them up from desktop, browser, TUI and more. Written in Rust with no UI framework: interface drawn straight on the GPU. No Electron, GPUI or webview.
Rust agentagent-orchestrationaiai-agentsclaude-codecodexcoding-agentlinuxmacosmultiplayermultiplexerrustterminalterminal-emulatorterminal-multiplexertmuxtuiweztermwindows
gui: put the theme back when saving it fails
RoversX125a49f0121d
diff --git a/wezterm-gui/src/settings_window.rs b/wezterm-gui/src/settings_window.rsindex c26da660..faa4189c 100644--- a/wezterm-gui/src/settings_window.rs+++ b/wezterm-gui/src/settings_window.rs@@ -4592,6 +4592,7 @@ impl SettingsWindow {}}SettingsAction::SetThemeMode(mode) => {+ let previous_mode = self.native_settings.appearance.theme_mode;self.native_settings.appearance.theme_mode = mode;self.ui.open_dropdown = None;match crate::native_settings::save(&self.native_settings) {@@ -4605,6 +4606,10 @@ impl SettingsWindow {self.status = crate::i18n::tr_args("settings-theme-changed", &args);}Err(err) => {+ // Put it back: nothing else in the process took the+ // new mode, so leaving it here would have this window+ // previewing a theme that was never saved.+ self.native_settings.appearance.theme_mode = previous_mode;let mut args = FluentArgs::new();args.set("error", format!("{err:#}"));self.status = crate::i18n::tr_args("settings-theme-save-error", &args);