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:
parent
58661fc85f
commit
7e12da3b8b
|
|
@ -52,13 +52,14 @@ class OverlayWindow(QMainWindow):
|
||||||
self.hide_overlay()
|
self.hide_overlay()
|
||||||
|
|
||||||
def _setup_window(self):
|
def _setup_window(self):
|
||||||
"""Configure window with EU styling."""
|
"""Configure window with EU styling - shows in taskbar."""
|
||||||
self.setWindowTitle("EU-Utility")
|
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(
|
self.setWindowFlags(
|
||||||
Qt.WindowType.FramelessWindowHint |
|
Qt.WindowType.FramelessWindowHint |
|
||||||
Qt.WindowType.WindowStaysOnTopHint |
|
Qt.WindowType.WindowStaysOnTopHint
|
||||||
Qt.WindowType.Tool
|
|
||||||
)
|
)
|
||||||
|
|
||||||
self.setAttribute(Qt.WidgetAttribute.WA_TranslucentBackground)
|
self.setAttribute(Qt.WidgetAttribute.WA_TranslucentBackground)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue