1
0

Qt: require left-click to toggle receive qr-code

This commit is contained in:
ThomasV
2022-07-05 15:31:53 +02:00
parent b6b7b0a6c0
commit 1d343657f1

View File

@@ -191,6 +191,8 @@ class ReceiveTab(QWidget, MessageBoxMixin, Logger):
self.request_list.update() # after parented and put into a layout, can update without flickering
def toggle_receive_qr(self, e):
if e.button() != Qt.LeftButton:
return
b = not self.config.get('receive_qr_visible', False)
self.config.set_key('receive_qr_visible', b)
self.update_receive_widgets()