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

stable repofilter: Remember state (shown/hidden) of the repo filter bar

The state (shown/hidden) of repo filter bar will be remembered _per repo_.
This seems reasonable because each repo can have its own repo filter bar with
its own settings and its own state. So saving the state per repo avoids
collisions when all repo tabs try to save their own state when the workbench
is closed.

On the other hand, this is contraty to what is done for other repo filter bar
settings. Actually, it seems that collissions in these other settings may be
more likely than for the filter bar visibility. Perhaps some of these other
settings should be saved per repo as well?

Changeset 53c271f4410e

Parent 1bf63aeadb29

by Angel Ezquerra

Changes to one file · Browse files at 53c271f4410e Showing diff from parent 1bf63aeadb29 Diff from another changeset...

 
179
180
181
 
 
 
 
 
 
 
182
183
184
185
 
 
186
187
188
 
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
@@ -179,10 +179,19 @@
  self.revsetcombo.addItems(full)   self.revsetcombo.setCurrentIndex(-1)   + # Show the filter bar if necessary + repoid = str(self._repo[0]) + if s.value('revset-showrepofilterbar-'+repoid).toBool(): + self.show() + else: + self.hide() +   def saveSettings(self, s):   s.setValue('revset/geom', self.entrydlg.saveGeometry())   s.setValue('revset-queries', self.revsethist)   s.setValue('revset-filter', self.filtercb.isChecked()) + repoid = str(self._repo[0]) + s.setValue('revset-showrepofilterbar-'+repoid, not self.isHidden())     def _initbranchfilter(self):   self._branchLabel = QToolButton(