1
0

qr_window: keep menu in sync with actual visibility

This commit is contained in:
ThomasV
2023-03-13 14:23:36 +01:00
parent 375ae851ec
commit b690f2e5cd
3 changed files with 6 additions and 2 deletions

View File

@@ -35,7 +35,7 @@ class QR_Window(QWidget):
def __init__(self, win):
QWidget.__init__(self)
self.win = win
self.main_window = win
self.setWindowTitle('Electrum - '+_('Payment Request'))
self.setMinimumSize(800, 800)
self.setFocusPolicy(Qt.NoFocus)
@@ -43,3 +43,6 @@ class QR_Window(QWidget):
self.qrw = QRCodeWidget()
main_box.addWidget(self.qrw, 1)
self.setLayout(main_box)
def closeEvent(self, event):
self.main_window.receive_tab.qr_menu_action.setChecked(False)