From b347473a74b3c68ae157aed60888d0ada0baa83a Mon Sep 17 00:00:00 2001 From: Timmy Welch Date: Wed, 22 Jan 2025 17:24:20 -0800 Subject: [PATCH] Set Toast to use the Popup window hint --- comictaggerlib/ui/pyqttoast/toast.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/comictaggerlib/ui/pyqttoast/toast.py b/comictaggerlib/ui/pyqttoast/toast.py index 8e28bd6..e3b93e0 100644 --- a/comictaggerlib/ui/pyqttoast/toast.py +++ b/comictaggerlib/ui/pyqttoast/toast.py @@ -87,7 +87,7 @@ class Toast(QDialog): self.__fade_in_duration = 250 self.__fade_out_duration = 250 self.__reset_duration_on_hover = True - self.__stay_on_top = True + self.__stay_on_top = False self.__border_radius = 0 self.__background_color = DEFAULT_BACKGROUND_COLOR self.__title_color = DEFAULT_TITLE_COLOR @@ -1324,14 +1324,14 @@ class Toast(QDialog): if on: self.setWindowFlags( - Qt.WindowType.Tool + Qt.WindowType.Popup | Qt.WindowType.CustomizeWindowHint | Qt.WindowType.FramelessWindowHint | Qt.WindowType.WindowStaysOnTopHint ) else: self.setWindowFlags( - Qt.WindowType.Tool | Qt.WindowType.CustomizeWindowHint | Qt.WindowType.FramelessWindowHint + Qt.WindowType.Popup | Qt.WindowType.CustomizeWindowHint | Qt.WindowType.FramelessWindowHint ) def getBorderRadius(self) -> int: