Fix issue with window maximization.

This commit is contained in:
Manu 2018-11-07 00:10:34 +08:00
parent 47bb4343b9
commit 20ab578a17
1 changed files with 2 additions and 1 deletions

View File

@ -1,5 +1,5 @@
from PyQt5.QtWidgets import QShortcut from PyQt5.QtWidgets import QShortcut
from PyQt5 import uic from PyQt5 import uic, QtCore
from PyQt5.QtGui import QKeySequence from PyQt5.QtGui import QKeySequence
from ..config import APP_NAME from ..config import APP_NAME
from .repo_tab import RepoTab from .repo_tab import RepoTab
@ -20,6 +20,7 @@ class MainWindow(MainWindowBase, MainWindowUI):
self.setupUi(self) self.setupUi(self)
self.setWindowTitle(APP_NAME) self.setWindowTitle(APP_NAME)
self.app = parent self.app = parent
self.setWindowFlags(QtCore.Qt.WindowCloseButtonHint | QtCore.Qt.WindowMinimizeButtonHint)
# Load tab models # Load tab models
self.repoTab = RepoTab(self.repoTabSlot) self.repoTab = RepoTab(self.repoTabSlot)