diff --git a/lib/gui_qt.py b/lib/gui_qt.py index 628662493..1b9685c35 100644 --- a/lib/gui_qt.py +++ b/lib/gui_qt.py @@ -137,11 +137,14 @@ class StatusBarButton(QPushButton): class QRCodeWidget(QWidget): - def __init__(self): + def __init__(self, data = None): QWidget.__init__(self) self.setMinimumSize(210, 210) self.addr = None self.qr = None + if data: + self.set_addr(data) + self.update_qr() def set_addr(self, addr): if self.addr != addr: