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.
This commit is contained in:
Kang
2026-11-04 17:01:13 +08:00
parent b7cb4cfad5
commit c95fa5b656
@@ -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)