Compare commits
2 Commits
ca8f36d105
...
d815264026
Author | SHA1 | Date | |
---|---|---|---|
|
d815264026 | ||
|
b347473a74 |
@ -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)
|
||||
|
||||
|
||||
|
@ -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:
|
||||
|
Loading…
x
Reference in New Issue
Block a user