Leek-app: switch to QApplication
This fixes the near constant console spam
This commit is contained in:
parent
31b9f1f0a1
commit
d33d91c0be
1 changed files with 2 additions and 2 deletions
|
|
@ -3,7 +3,7 @@
|
|||
import os
|
||||
import sys
|
||||
import signal
|
||||
from PySide6.QtGui import QGuiApplication
|
||||
from PySide6.QtWidgets import QApplication
|
||||
from PySide6.QtCore import QUrl
|
||||
from PySide6.QtQml import QQmlApplicationEngine
|
||||
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():
|
||||
"""Initializes and manages the application execution"""
|
||||
app: QGuiApplication = QGuiApplication(sys.argv)
|
||||
app: QApplication = QApplication(sys.argv)
|
||||
app.setDesktopFileName("xyz.toast003.leek")
|
||||
app.setApplicationName("Leek")
|
||||
engine = QQmlApplicationEngine()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue