1. Marc Schlaich
  2. thg-mac

Commits

David Golub  committed 2488d3b

sync: eliminate addmargin parameter from initializer

  • Participants
  • Parent commits 5df5b68
  • Branches stable

Comments (0)

Files changed (1)

File tortoisehg/hgqt/sync.py

View file
  • Ignore whitespace
     showBusyIcon = pyqtSignal(QString)
     hideBusyIcon = pyqtSignal(QString)
 
-    def __init__(self, repo, parent, addmargin=False, **opts):
+    def __init__(self, repo, parent, **opts):
         QWidget.__init__(self, parent)
 
         layout = QVBoxLayout()
             tb.addWidget(self.targetcombo)
 
         bottomlayout = QVBoxLayout()
-        if addmargin:
+        if not parent:
             bottomlayout.setContentsMargins(5, 5, 5, 5)
         else:
             bottomlayout.setContentsMargins(0, 0, 0, 0)
 
 def run(ui, *pats, **opts):
     repo = thgrepo.repository(ui, path=paths.find_root())
-    return SyncWidget(repo, None, addmargin=True, **opts)
+    return SyncWidget(repo, None, **opts)