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

stable repowidget: emit toolbarVisibilityChanged after repowidget is shown

Until the repowidget has been fully realized and drawn, filterbar.isVisible()
will always return false. To accurately update the Workbench toggle button we
must check visibility after Qt gets back to the main event loop.

Changeset e0719e1536a4

Parent 5749cde33f3b

by Steve Borho

Changes to one file · Browse files at e0719e1536a4 Showing diff from parent 5749cde33f3b Diff from another changeset...

 
760
761
762
 
763
764
765
 
760
761
762
763
764
765
766
@@ -760,6 +760,7 @@
  self.filterbar.loadSettings(s)   self.repotabs_splitter.restoreState(   s.value('repowidget/splitter-'+repoid).toByteArray()) + QTimer.singleShot(0, lambda: self.toolbarVisibilityChanged.emit())     def okToContinue(self):   if not self.commitDemand.forward('canExit', default=True):