From 46b8692136478c09a8c0ae937d440eaa53cf57ef Mon Sep 17 00:00:00 2001 From: JezerM Date: Fri, 4 Feb 2022 10:22:18 -0600 Subject: [PATCH] LightDM signals are too fast. Signals are delayed now. --- src/bridge/Greeter.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/bridge/Greeter.py b/src/bridge/Greeter.py index c0b1e31..a4d4ca5 100644 --- a/src/bridge/Greeter.py +++ b/src/bridge/Greeter.py @@ -34,7 +34,7 @@ gi.require_version('LightDM', '1') from gi.repository import LightDM from gi.repository.GLib import GError -from PyQt5.QtCore import QVariant +from PyQt5.QtCore import QVariant, QTimer # This Application from logger import logger @@ -145,8 +145,8 @@ class Greeter(BridgeObject): def _emit_signal(self, _signal, *args): self.property_changed.emit() - _signal.emit(*args) - # QTimer().singleShot(300, lambda: _signal.emit(*args)) + # _signal.emit(*args) + QTimer().singleShot(300, lambda: _signal.emit(*args)) @Bridge.prop(str, notify=property_changed) def authentication_user(self):