Skip to content

Commit

Permalink
fix(linux): resolve opengl warning
Browse files Browse the repository at this point in the history
  • Loading branch information
AnthonyMichaelTDM committed Jul 11, 2024
1 parent 7cc282e commit 0afa767
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/main/python/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 (
Expand Down Expand Up @@ -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()

Expand Down

0 comments on commit 0afa767

Please sign in to comment.