From 12ff5b2728149a016e49fb400a51010ba90a7220 Mon Sep 17 00:00:00 2001 From: f321x Date: Fri, 16 May 2025 13:13:00 +0200 Subject: [PATCH] fix: make ToU scrollbar detection more reliable adds some delay before detecting the scrollbar in the terms of use dialog. This prevents it from falsely detecting a scrollbar and disabling the "I Agree" button even if there is no scrollbar. I noticed this issue on windows, the order in which the window is created seems to be slightliy different from linux/wayland there. --- electrum/gui/qt/wizard/terms_of_use.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/electrum/gui/qt/wizard/terms_of_use.py b/electrum/gui/qt/wizard/terms_of_use.py index 33b618fe9..503de3b2e 100644 --- a/electrum/gui/qt/wizard/terms_of_use.py +++ b/electrum/gui/qt/wizard/terms_of_use.py @@ -55,7 +55,7 @@ class WCTermsOfUseScreen(WizardComponent): self._valid = False # Find the scroll area and connect to its scrollbar - QTimer.singleShot(0, self.check_scroll_position) + QTimer.singleShot(100, self.check_scroll_position) self.window().installEventFilter(self) def eventFilter(self, obj, event):