mirror of
https://github.com/LBRYFoundation/LBRY-Vault.git
synced 2025-08-31 17:31:36 +00:00
qt update checker: subclass QDialog instead of QWidget
this way "minimise to taskbar" and "fullscreen" buttons are not shown
This commit is contained in:
parent
c95c0dcb80
commit
5d4f8f3164
1 changed files with 3 additions and 3 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Reference in a new issue