Skip to content

Commit

Permalink
Start gui as maximized (#318)
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisoro authored Jun 20, 2024
1 parent 9685cdf commit 48ff381
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/__init__.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = "5.6.0beta7"
__version__ = "5.6.0beta8"
5 changes: 1 addition & 4 deletions src/gui/qt_gui.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,10 +54,7 @@ def __init__(self):
self.setWindowTitle(f"D4LF v{__version__}")
self.setGeometry(0, 0, 650, 800)

# Center the window on the screen
screen = QApplication.primaryScreen()
rect = screen.geometry()
self.move(rect.width() // 2 - self.width() // 2, (rect.height() // 2 - self.height() // 2) - 30)
self.showMaximized()

self.tab_widget = QTabWidget(self)
self.tab_widget.setTabBar(_CustomTabBar())
Expand Down

0 comments on commit 48ff381

Please sign in to comment.