|
@ -8,7 +8,7 @@ from distutils.version import StrictVersion |
|
|
|
|
|
|
|
|
from PyQt5.QtCore import Qt, QThread, pyqtSignal |
|
|
from PyQt5.QtCore import Qt, QThread, pyqtSignal |
|
|
from PyQt5.QtWidgets import (QWidget, QVBoxLayout, QLabel, QProgressBar, |
|
|
from PyQt5.QtWidgets import (QWidget, QVBoxLayout, QLabel, QProgressBar, |
|
|
QHBoxLayout, QPushButton) |
|
|
QHBoxLayout, QPushButton, QDialog) |
|
|
|
|
|
|
|
|
from electrum import version |
|
|
from electrum import version |
|
|
from electrum import constants |
|
|
from electrum import constants |
|
@ -18,7 +18,7 @@ from electrum.util import make_aiohttp_session |
|
|
from electrum.logging import Logger |
|
|
from electrum.logging import Logger |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
class UpdateCheck(QWidget, Logger): |
|
|
class UpdateCheck(QDialog, Logger): |
|
|
url = "https://electrum.org/version" |
|
|
url = "https://electrum.org/version" |
|
|
download_url = "https://electrum.org/#download" |
|
|
download_url = "https://electrum.org/#download" |
|
|
|
|
|
|
|
@ -28,7 +28,7 @@ class UpdateCheck(QWidget, Logger): |
|
|
|
|
|
|
|
|
def __init__(self, main_window, latest_version=None): |
|
|
def __init__(self, main_window, latest_version=None): |
|
|
self.main_window = main_window |
|
|
self.main_window = main_window |
|
|
QWidget.__init__(self) |
|
|
QDialog.__init__(self) |
|
|
self.setWindowTitle('Electrum - ' + _('Update Check')) |
|
|
self.setWindowTitle('Electrum - ' + _('Update Check')) |
|
|
self.content = QVBoxLayout() |
|
|
self.content = QVBoxLayout() |
|
|
self.content.setContentsMargins(*[10]*4) |
|
|
self.content.setContentsMargins(*[10]*4) |
|
|