Skip to content

Commit

Permalink
Show current offset in set offset dialog (#642)
Browse files Browse the repository at this point in the history
  • Loading branch information
Et0h authored Nov 9, 2023
1 parent 20846ca commit f4fae95
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion syncplay/ui/gui.py
Original file line number Diff line number Diff line change
Expand Up @@ -1355,9 +1355,10 @@ def _extractSign(self, m):

@needsClient
def setOffset(self):
oldoffset = str(self._syncplayClient.getUserOffset())
newoffset, ok = QtWidgets.QInputDialog.getText(
self, getMessage("setoffset-msgbox-label"),
getMessage("offsetinfo-msgbox-label"), QtWidgets.QLineEdit.Normal, "")
getMessage("offsetinfo-msgbox-label"), QtWidgets.QLineEdit.Normal, oldoffset)
if ok and newoffset != '':
o = re.match(constants.UI_OFFSET_REGEX, "o " + newoffset)
if o:
Expand Down

0 comments on commit f4fae95

Please sign in to comment.