Read about our upcoming Code of Conduct on this issue

Commit bc2e75c3 authored by Steve Borho's avatar Steve Borho
Browse files

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.
parent 31114c4a2f7d
......@@ -284,7 +284,8 @@ class HgFileView(QFrame):
self.ann.setVisible(mode == 'ann')
if mode != self._mode:
self._mode = mode
if not self._lostMode:
def forceMode(self, mode):
'Force into file or diff mode, based on content constaints'
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment