fix: Show app in taskbar for easy quitting

Removed Qt.WindowType.Tool flag which was hiding app from taskbar.
App now appears in Windows taskbar and can be closed from there.
Window still stays on top with WindowStaysOnTopHint.
This commit is contained in:
LemonNexus 2026-02-13 15:44:29 +00:00
parent 58661fc85f
commit 7e12da3b8b
1 changed files with 4 additions and 3 deletions

View File

@ -52,13 +52,14 @@ class OverlayWindow(QMainWindow):
self.hide_overlay()
def _setup_window(self):
"""Configure window with EU styling."""
"""Configure window with EU styling - shows in taskbar."""
self.setWindowTitle("EU-Utility")
# Frameless, but NOT Tool (so it shows in taskbar)
# WindowStaysOnTopHint makes it stay on top without hiding from taskbar
self.setWindowFlags(
Qt.WindowType.FramelessWindowHint |
Qt.WindowType.WindowStaysOnTopHint |
Qt.WindowType.Tool
Qt.WindowType.WindowStaysOnTopHint
)
self.setAttribute(Qt.WidgetAttribute.WA_TranslucentBackground)