Read about our upcoming Code of Conduct on this issue

This instance will be upgraded to Heptapod 0.28.1 on 2022-01-26 at 16:00 UTC+1 (a few minutes of down time)

Commit 9d88d196 authored by Steve Borho's avatar Steve Borho
Browse files

sync: rename detailsbutton to optionsbutton

parent 951a5052f162
......@@ -92,10 +92,10 @@ class SyncWidget(QWidget):
hbox.addWidget(tb)
self.layout().addLayout(hbox)
self.detailsbutton = QPushButton(_('Options'))
self.optionsbutton = QPushButton(_('Options'))
self.postpullbutton = QPushButton()
hbox.addWidget(self.postpullbutton)
hbox.addWidget(self.detailsbutton)
hbox.addWidget(self.optionsbutton)
tb.setMaximumHeight(self.postpullbutton.sizeHint().height())
if 'perfarce' in self.repo.extensions():
self.p4pbutton = QPushButton(_('p4pending'))
......@@ -188,7 +188,7 @@ class SyncWidget(QWidget):
self.savebutton.clicked.connect(self.saveclicked)
self.authbutton.clicked.connect(self.authclicked)
self.postpullbutton.clicked.connect(self.postpullclicked)
self.detailsbutton.pressed.connect(self.details)
self.optionsbutton.pressed.connect(self.editOptions)
self.opbuttons = sactions + [self.p4pbutton]
......@@ -261,7 +261,7 @@ class SyncWidget(QWidget):
'Repository is reporting its config files have changed'
self.reload()
def details(self):
def editOptions(self):
dlg = OptionsDialog(self.opts, self)
dlg.setWindowFlags(Qt.Sheet)
dlg.setWindowModality(Qt.WindowModal)
......
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