From 0afa767232de2c16089a2d39bb13aa114cb3f449 Mon Sep 17 00:00:00 2001 From: AnthonyMichaelTDM <68485672+AnthonyMichaelTDM@users.noreply.github.com> Date: Thu, 11 Jul 2024 11:34:24 -0700 Subject: [PATCH] fix(linux): resolve opengl warning --- src/main/python/main.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main/python/main.py b/src/main/python/main.py index ec7f049..69f619c 100755 --- a/src/main/python/main.py +++ b/src/main/python/main.py @@ -18,7 +18,7 @@ XP_PER_WEAPON_LEVEL, XP_TABLE, ) -from PySide6.QtCore import QFile, QIODevice, Qt, Slot +from PySide6.QtCore import QCoreApplication, QFile, QIODevice, Qt, Slot from PySide6.QtGui import QAction, QFocusEvent from PySide6.QtUiTools import QUiLoader from PySide6.QtWidgets import ( @@ -1460,6 +1460,7 @@ def remove_all_ocs() -> None: season_selected: int = LATEST_SEASON if __name__ == "__main__": + QCoreApplication.setAttribute(Qt.ApplicationAttribute.AA_ShareOpenGLContexts, True) # print(os.getcwd()) app = QApplication()