commit 31c08db9091ecbbec2130796e3ab11a46eec6896
parent 138c98d7d88b2682cb148cdfd8c6c5463a022ed6
Author: SomberNight <somber.night@protonmail.com>
Date: Sun, 27 Jan 2019 14:42:37 +0100
qt update notifications: make url clickable; prevent multiple dialogs
Diffstat:
2 files changed, 3 insertions(+), 1 deletion(-)
diff --git a/electrum/gui/qt/main_window.py b/electrum/gui/qt/main_window.py
@@ -628,7 +628,7 @@ class ElectrumWindow(QMainWindow, MessageBoxMixin, PrintError):
_("Uses icons from the Icons8 icon pack (icons8.com).")))
def show_update_check(self, version=None):
- self._update_check = UpdateCheck(self, version)
+ self.gui_object._update_check = UpdateCheck(self, version)
def show_report_bug(self):
msg = ' '.join([
diff --git a/electrum/gui/qt/util.py b/electrum/gui/qt/util.py
@@ -846,6 +846,8 @@ class UpdateCheck(QWidget, PrintError):
self.content.addWidget(self.heading_label)
self.detail_label = QLabel()
+ self.detail_label.setTextInteractionFlags(Qt.LinksAccessibleByMouse)
+ self.detail_label.setOpenExternalLinks(True)
self.content.addWidget(self.detail_label)
self.pb = QProgressBar()