Kiln » TortoiseHg » TortoiseHg
Clone URL:  
Pushed to one repository · View In Graph Contained in 1.9.3, 2.0, and 2.0.1

stable workbench: prepend repo shortname to window title

This helps better identify the entries in the taskbar of Windows.

Before this change, on e.g. Windows 7 you could typically only read
"TortoseHg Workben...". Now you can read -- for example --
"hg-main - Tortois...".

This helps to find the right entry in the taskbar of Windows if you
have multiple Workbench windows open.

Example titlebar text:

Old: TortoiseHg Workbench - C:\users\adi\hgrepos\hg-main
New: hg-main - TortoiseHg Workbench - C:\users\adi\hgrepos\hg-main

Compare with Mozilla Thunderbird, which shows the name of the selected
mail folder as the first component of the titlebar text.

Changeset aa1408d1708a

Parent ba7f458edcb3

by Adrian Buehlmann

Changes to one file · Browse files at aa1408d1708a Showing diff from parent ba7f458edcb3 Diff from another changeset...

 
404
405
406
407
408
 
 
409
410
411
 
404
405
406
 
 
407
408
409
410
411
@@ -404,8 +404,8 @@
  if tw.count() == 0:   self.setWindowTitle(_('TortoiseHg Workbench'))   else: - self.setWindowTitle(_('TortoiseHg Workbench - %s') % - w.repo.displayname) + self.setWindowTitle(_('%s - TortoiseHg Workbench - %s') % + (w.repo.shortname, w.repo.displayname))     def updateToolBarActions(self):   w = self.repoTabsWidget.currentWidget()