Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions aitviewer/viewer.py
Original file line number Diff line number Diff line change
Expand Up @@ -191,6 +191,15 @@ def __init__(
self.window.set_icon(icon_path=icon_path)
except:
pass
if sys.platform == "darwin":
# On macOS the dock icon must be set at the QApplication level.
if self.window_type == "pyqt6":
from PyQt6.QtGui import QIcon
from PyQt6.QtWidgets import QApplication
else:
from PyQt5.QtGui import QIcon
from PyQt5.QtWidgets import QApplication
QApplication.instance().setWindowIcon(QIcon(icon_path))

self.timer = PerfTimer()
self.ctx = self.window.ctx
Expand Down
Loading