1
0

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.
This commit is contained in:
f321x
2025-05-16 13:13:00 +02:00
parent 79a54c1578
commit 12ff5b2728

View File

@@ -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):