Use leaveEvent instead of checking mouseMove position constantly.
This commit is contained in:
@@ -402,9 +402,8 @@ class PasswordDialog(QDialog):
|
|||||||
|
|
||||||
class ReceivePopup(QDialog):
|
class ReceivePopup(QDialog):
|
||||||
|
|
||||||
def mouseMoveEvent(self, event):
|
def leaveEvent(self, event):
|
||||||
if not self.rect().contains(event.pos()):
|
self.close()
|
||||||
self.close()
|
|
||||||
|
|
||||||
def setup(self, address):
|
def setup(self, address):
|
||||||
label = QLabel(_("Copied your Bitcoin address to the clipboard!"))
|
label = QLabel(_("Copied your Bitcoin address to the clipboard!"))
|
||||||
|
|||||||
Reference in New Issue
Block a user