From f4fae9540867c1fe147729468ca4d099c9aed705 Mon Sep 17 00:00:00 2001 From: Etoh Date: Thu, 9 Nov 2023 18:58:18 +0000 Subject: [PATCH] Show current offset in set offset dialog (#642) --- syncplay/ui/gui.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/syncplay/ui/gui.py b/syncplay/ui/gui.py index ca0f5d4a7..f6d41e349 100755 --- a/syncplay/ui/gui.py +++ b/syncplay/ui/gui.py @@ -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: