File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -697,18 +697,17 @@ def _update_status_line(self) -> None:
697697 if statusbar is None :
698698 return
699699
700- def _short_path (path : str | None , max_len : int = 28 ) -> str :
700+ def _workspace_label (path : str | None ) -> str :
701701 if not path :
702- return "None "
702+ return "- "
703703 try :
704704 p = os .path .normpath (path )
705+ name = os .path .basename (p )
706+ return name or p
705707 except Exception :
706- p = path
707- if len (p ) <= max_len :
708- return p
709- return f"...{ p [- max_len :]} "
708+ return path
710709
711- ws = _short_path (getattr (self , "workspace_dir" , None ))
710+ ws = _workspace_label (getattr (self , "workspace_dir" , None ))
712711 files_total = 0
713712 files_sel = 0
714713 try :
@@ -730,19 +729,18 @@ def _short_path(path: str | None, max_len: int = 28) -> str:
730729 prog = ""
731730 try :
732731 pb = getattr (self , "progress" , None )
733- if pb is not None :
732+ if pb is not None and pb . value () > 0 :
734733 prog = f"{ pb .value ()} %"
735734 except Exception :
736735 pass
737736
738737 parts = [
739- f"Workspace: { ws } " ,
740- f"Files: { files_total } " ,
741- f"Selected: { files_sel } " ,
742- f"Engine: { engine_name } " ,
738+ f"WS:{ ws } " ,
739+ f"F:{ files_sel } /{ files_total } " ,
740+ f"E:{ engine_name } " ,
743741 ]
744742 if prog :
745- parts .append (f"Progress: { prog } " )
743+ parts .append (f"P: { prog } " )
746744
747745 msg = " | " .join (parts )
748746 try :
You can’t perform that action at this time.
0 commit comments