Commits

Yuya Nishihara  committed 2249996

minor refinement

  • Participants
  • Parent commits eaaf7ff

Comments (0)

Files changed (3)

File reporeg-dummystart-splitresize.diff

-# HG changeset patch
-# Parent 08cb2ec18b864b13ca172e40d7edb384e82ffd0b
-diff --git a/tortoisehg/hgqt/reporegistry.py b/tortoisehg/hgqt/reporegistry.py
---- a/tortoisehg/hgqt/reporegistry.py
-+++ b/tortoisehg/hgqt/reporegistry.py
-@@ -280,6 +280,7 @@ class RepoRegistryView(QDockWidget):
-         self._activeTabRepo = None
- 
-         self._loadSettings()
-+        self._updateColumnVisibility()
- 
-     def _loadSettings(self):
-         defaultmap = {'showPaths': False, 'showSubrepos': True,
-@@ -358,7 +359,7 @@ class RepoRegistryView(QDockWidget):
-         newmodel.updateProgress.connect(self.updateProgress)
-         oldmodel.deleteLater()
-         self.expand()
--        self._updateColumnVisibility()  # resize columns to fit
-+        self._resizeColumnsToFit()
-         self._reloadModelTimer.stop()
- 
-     def _getItemAndAncestors(self, it):
-@@ -430,6 +431,9 @@ class RepoRegistryView(QDockWidget):
-         show = self._isSettingEnabled('showPaths')
-         self.tview.setColumnHidden(1, not show)
-         self.tview.setHeaderHidden(not show)
-+
-+    def _resizeColumnsToFit(self):
-+        show = self._isSettingEnabled('showPaths')
-         if show:
-             self.tview.resizeColumnToContents(0)
-             self.tview.resizeColumnToContents(1)

File reporeg-dummystart.diff

          self.watcher = QFileSystemWatcher(self)
          self.watcher.addPath(sfile)
          self._reloadModelTimer = QTimer(self, interval=2000, singleShot=True)
-@@ -279,12 +280,6 @@ class RepoRegistryView(QDockWidget):
+@@ -279,11 +280,6 @@ class RepoRegistryView(QDockWidget):
          self._activeTabRepo = None
  
          self._loadSettings()
 -    @pyqtSlot()
 -    def _initView(self):
 -        self.expand()
--        self._updateColumnVisibility()
+         self._updateColumnVisibility()
  
      def _loadSettings(self):
-         defaultmap = {'showPaths': False, 'showSubrepos': True,
-@@ -295,9 +290,6 @@ class RepoRegistryView(QDockWidget):
+@@ -295,9 +291,6 @@ class RepoRegistryView(QDockWidget):
              action.setChecked(s.value(key, defaultmap[key]).toBool())
          s.endGroup()
  
      def _saveSettings(self):
          s = QSettings()
          s.beginGroup('Workbench')  # for compatibility with old release
-@@ -366,6 +358,7 @@ class RepoRegistryView(QDockWidget):
+@@ -366,6 +359,7 @@ class RepoRegistryView(QDockWidget):
          newmodel.updateProgress.connect(self.updateProgress)
          oldmodel.deleteLater()
          self.expand()
 reporeg-modsettingtimer.diff
 reporeg-connect.diff
 reporeg-dummystart.diff
-reporeg-dummystart-splitresize.diff
 wb-createserver.diff
 wb-launch.diff
 wb-delayload.diff