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

fileview: skip displayFile() call if recovering form _lostMode

This prevents a flicker (and a double file read/diff) when toggling from forced
mode back to the user's preferred mode.

Changeset 448add7dbf32

Parent 31114c4a2f7d

by Steve Borho

Changes to one file · Browse files at 448add7dbf32 Showing diff from parent 31114c4a2f7d Diff from another changeset...

 
284
285
286
287
 
 
288
289
290
 
284
285
286
 
287
288
289
290
291
@@ -284,7 +284,8 @@
  self.ann.setVisible(mode == 'ann')   if mode != self._mode:   self._mode = mode - self.displayFile() + if not self._lostMode: + self.displayFile()     def forceMode(self, mode):   'Force into file or diff mode, based on content constaints'