mirror of
https://github.com/nyakang/nyaterm.git
synced 2026-11-06 08:07:34 +00:00
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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user