@@ -63,10 +63,10 @@ class StatusBar(Horizontal):
6363 git_status : reactive [str ] = reactive ("" )
6464
6565 def compose (self ):
66+ yield Static ("○" , id = "autosave" )
6667 yield Static ("untitled" , id = "filename" )
6768 yield Static ("" , id = "modified" )
6869 yield Static ("" , id = "git" )
69- yield Static ("" , id = "autosave" )
7070 yield Static ("" , classes = "spacer" )
7171 yield Static ("0 words" , id = "word-count" )
7272 yield Static ("·" , classes = "sep" )
@@ -79,7 +79,7 @@ def _refresh_all(self) -> None:
7979 try :
8080 self .query_one ("#filename" , Static ).update (self .filename )
8181 self .query_one ("#modified" , Static ).update (
82- " [+]" if self .modified else ""
82+ " [+]" if self .modified else " [·] "
8383 )
8484 self .query_one ("#git" , Static ).update (
8585 f" { self .git_status } " if self .git_status else ""
@@ -97,7 +97,7 @@ def watch_filename(self, filename: str) -> None:
9797
9898 def watch_modified (self , modified : bool ) -> None :
9999 try :
100- self .query_one ("#modified" , Static ).update (" [+]" if modified else "" )
100+ self .query_one ("#modified" , Static ).update (" [+]" if modified else " [·] " )
101101 except Exception :
102102 pass
103103
@@ -126,7 +126,7 @@ def flash_autosave(self) -> None:
126126 """Briefly show autosave indicator."""
127127 try :
128128 indicator = self .query_one ("#autosave" , Static )
129- indicator .update (" ●" )
130- self .set_timer (1.5 , lambda : indicator .update ("" ))
129+ indicator .update ("●" )
130+ self .set_timer (1.5 , lambda : indicator .update ("○ " ))
131131 except Exception :
132132 pass
0 commit comments