2019-04-12 03:22:43 +10:00
|
|
|
# Copyright 2019 miruka
|
|
|
|
# This file is part of harmonyqml, licensed under GPLv3.
|
|
|
|
|
|
|
|
from typing import List, Optional
|
|
|
|
|
|
|
|
from PyQt5.QtGui import QGuiApplication
|
|
|
|
|
|
|
|
from . import __about__
|
|
|
|
|
|
|
|
|
|
|
|
class Application(QGuiApplication):
|
|
|
|
def __init__(self, args: Optional[List[str]] = None) -> None:
|
2019-05-01 15:23:38 +10:00
|
|
|
self.debug = False
|
|
|
|
|
|
|
|
if args and "--debug" in args:
|
|
|
|
del args[args.index("--debug")]
|
|
|
|
self.debug = True
|
2019-04-12 03:22:43 +10:00
|
|
|
|
|
|
|
super().__init__(args or [])
|
|
|
|
|
|
|
|
self.setApplicationName(__about__.__pkg_name__)
|
|
|
|
self.setApplicationDisplayName(__about__.__pretty_name__)
|