qt update checker: subclass QDialog instead of QWidget

this way "minimise to taskbar" and "fullscreen" buttons are not shown
This commit is contained in:
SomberNight 2020-03-09 22:01:51 +01:00
parent c95c0dcb80
commit 5d4f8f3164
No known key found for this signature in database
GPG key ID: B33B5F232C6271E9

View file

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