Skip to content

Commit

Permalink
Fix various qt window problems (#81)
Browse files Browse the repository at this point in the history
* ensure update window isn't hard to find

own window and correct icon.

* Add test results

* Update README.md status badges.

---------

Co-authored-by: GitHub Action <[email protected]>
  • Loading branch information
th3w1zard1 and actions-user authored Mar 13, 2024
1 parent 6b37ecf commit 90cd0bc
Show file tree
Hide file tree
Showing 56 changed files with 8,927 additions and 8,925 deletions.
42 changes: 20 additions & 22 deletions README.md

Large diffs are not rendered by default.

16 changes: 10 additions & 6 deletions Tools/HolocronToolset/src/toolset/gui/windows/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
import requests

from PyQt5 import QtCore
from PyQt5.QtCore import Qt
from PyQt5.QtGui import QIcon, QPixmap, QStandardItem
from PyQt5.QtWidgets import QFileDialog, QMainWindow, QMessageBox
from watchdog.events import FileSystemEventHandler
Expand Down Expand Up @@ -690,14 +691,17 @@ def _check_toolset_update(self, *, silent: bool):

toolsetDownloadLink = data["toolsetDownloadLink"]
toolsetLatestNotes = data.get("toolsetLatestNotes", "")
betaString = "beta" if self.settings.useBetaChannel else ""
QMessageBox(
betaString = "beta " if self.settings.useBetaChannel else ""
msgBox = QMessageBox(
QMessageBox.Information,
f"New {betaString} version is available.",
f"New {betaString} version available for <a href='{toolsetDownloadLink}'>download</a>.<br>{toolsetLatestNotes}",
f"New {betaString}version is available.",
f"New {betaString}version available for <a href='{toolsetDownloadLink}'>download</a>.<br>{toolsetLatestNotes}",
QMessageBox.Ok,
self,
).exec_()
parent=None,
flags=Qt.Window | Qt.Dialog | Qt.WindowStaysOnTopHint
)
msgBox.setWindowIcon(self.windowIcon())
msgBox.exec_()

# endregion

Expand Down
Loading

0 comments on commit 90cd0bc

Please sign in to comment.