Compare commits

...

2 Commits

Author SHA1 Message Date
Timmy Welch
d815264026 Comment qt functions executed in a separate thread 2025-01-22 17:25:33 -08:00
Timmy Welch
b347473a74 Set Toast to use the Popup window hint 2025-01-22 17:24:20 -08:00
2 changed files with 7 additions and 7 deletions

View File

@ -54,7 +54,7 @@ class QueryThread(QtCore.QThread):
self.on_ratelimit = on_ratelimit
def run(self) -> None:
QtWidgets.QApplication.setOverrideCursor(QtGui.QCursor(QtCore.Qt.CursorShape.WaitCursor))
# QtWidgets.QApplication.setOverrideCursor(QtGui.QCursor(QtCore.Qt.CursorShape.WaitCursor))
try:
issue_list = [
@ -65,11 +65,11 @@ class QueryThread(QtCore.QThread):
if x.issue_id is not None
]
except TalkerError as e:
QtWidgets.QApplication.restoreOverrideCursor()
QtWidgets.QMessageBox.critical(None, f"{e.source} {e.code_name} Error", f"{e}")
# QtWidgets.QApplication.restoreOverrideCursor()
# QtWidgets.QMessageBox.critical(None, f"{e.source} {e.code_name} Error", f"{e}")
return
QtWidgets.QApplication.restoreOverrideCursor()
# QtWidgets.QApplication.restoreOverrideCursor()
self.finish.emit(issue_list)

View File

@ -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: