Skip to content

Commit 36c46b1

Browse files
committed
Show main window in maximized state
1 parent 6c39ebe commit 36c46b1

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

ui/main_window.py

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import sys
22

33
from PySide6.QtCore import Qt
4-
from PySide6.QtGui import QIcon, QAction, QGuiApplication, QTextCursor
4+
from PySide6.QtGui import QIcon, QAction, QTextCursor, QGuiApplication
55
from PySide6.QtWidgets import (
66
QMainWindow, QDockWidget, QMessageBox, QWidget
77
)
@@ -39,9 +39,11 @@ def __init__(self):
3939
self.setWindowTitle(f"iOS reverse engineering laboratory v{VERSION}")
4040
self.setWindowIcon(QIcon("img/apple.ico"))
4141

42-
screen = QGuiApplication.primaryScreen().availableGeometry()
43-
self.resize(screen.width() - 50, screen.height() - 50)
44-
self.move(screen.topLeft())
42+
screen_geom = QGuiApplication.primaryScreen().availableGeometry()
43+
width = screen_geom.width()
44+
height = screen_geom.height()
45+
self.resize(width, height)
46+
self.setWindowState(Qt.WindowState.WindowMaximized)
4547

4648
central = QWidget()
4749
self.setCentralWidget(central)

0 commit comments

Comments
 (0)