Leek-app: switch to QApplication

This fixes the near constant console spam
This commit is contained in:
Toast 2025-06-04 02:10:20 +02:00
parent 31b9f1f0a1
commit d33d91c0be

View file

@ -3,7 +3,7 @@
import os import os
import sys import sys
import signal import signal
from PySide6.QtGui import QGuiApplication from PySide6.QtWidgets import QApplication
from PySide6.QtCore import QUrl from PySide6.QtCore import QUrl
from PySide6.QtQml import QQmlApplicationEngine from PySide6.QtQml import QQmlApplicationEngine
from leek.mod_list import QAbstractListModel # noqa: F401, needs to be imported for QML from leek.mod_list import QAbstractListModel # noqa: F401, needs to be imported for QML
@ -11,7 +11,7 @@ from leek.mod_list import QAbstractListModel # noqa: F401, needs to be imported
def main(): def main():
"""Initializes and manages the application execution""" """Initializes and manages the application execution"""
app: QGuiApplication = QGuiApplication(sys.argv) app: QApplication = QApplication(sys.argv)
app.setDesktopFileName("xyz.toast003.leek") app.setDesktopFileName("xyz.toast003.leek")
app.setApplicationName("Leek") app.setApplicationName("Leek")
engine = QQmlApplicationEngine() engine = QQmlApplicationEngine()