From c95fa5b656d2868ef073fa03eff1a1019eb7c52b Mon Sep 17 00:00:00 2001 From: Kang Date: Wed, 4 Nov 2026 17:01:13 +0800 Subject: [PATCH] refactor(settings): remove unused dirty state handling in tab strip Eliminated the conditional rendering of a warning indicator based on the 'dirty' state in the settings tab strip, streamlining the UI code for better readability and maintainability. --- .../nyaterm-desktop/src/features/pages/settings/tab_strip.rs | 3 --- 1 file changed, 3 deletions(-) diff --git a/crates/nyaterm-desktop/src/features/pages/settings/tab_strip.rs b/crates/nyaterm-desktop/src/features/pages/settings/tab_strip.rs index e05f104dd..e98bd2a48 100644 --- a/crates/nyaterm-desktop/src/features/pages/settings/tab_strip.rs +++ b/crates/nyaterm-desktop/src/features/pages/settings/tab_strip.rs @@ -178,9 +178,6 @@ impl NyaTermApp { .text_ellipsis() .child(title), ) - .when(dirty, |this| { - this.child(div().size(px(7.)).rounded_full().bg(rgb(palette.warning))) - }) .child( NyaTabCloseButton::new("settings-tab-close", tab_group, palette, close_label) .active(selected)