mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-24 21:04:40 +01:00
add logs about missing attributes
This commit is contained in:
parent
5627c8ec62
commit
01d3b0b0b0
1 changed files with 12 additions and 6 deletions
|
|
@ -9,11 +9,11 @@ import platform
|
|||
from Qt import QtCore, QtGui, QtWidgets
|
||||
|
||||
import openpype.version
|
||||
from openpype.api import (
|
||||
resources,
|
||||
get_system_settings
|
||||
from openpype import resources, style
|
||||
from openpype.lib import (
|
||||
get_openpype_execute_args,
|
||||
Logger,
|
||||
)
|
||||
from openpype.lib import get_openpype_execute_args, Logger
|
||||
from openpype.lib.openpype_version import (
|
||||
op_version_control_available,
|
||||
get_expected_version,
|
||||
|
|
@ -25,8 +25,8 @@ from openpype.lib.openpype_version import (
|
|||
get_openpype_version,
|
||||
)
|
||||
from openpype.modules import TrayModulesManager
|
||||
from openpype import style
|
||||
from openpype.settings import (
|
||||
get_system_settings,
|
||||
SystemSettings,
|
||||
ProjectSettings,
|
||||
DefaultsNotDefined
|
||||
|
|
@ -774,6 +774,7 @@ class PypeTrayStarter(QtCore.QObject):
|
|||
|
||||
|
||||
def main():
|
||||
log = Logger.get_logger(__name__)
|
||||
app = QtWidgets.QApplication.instance()
|
||||
if not app:
|
||||
app = QtWidgets.QApplication([])
|
||||
|
|
@ -783,7 +784,12 @@ def main():
|
|||
"AA_UseHighDpiPixmaps"
|
||||
):
|
||||
attr = getattr(QtCore.Qt, attr_name, None)
|
||||
if attr is not None:
|
||||
if attr is None:
|
||||
log.debug((
|
||||
"Missing QtCore.Qt attribute \"{}\"."
|
||||
" UI quality may be affected."
|
||||
).format(attr_name))
|
||||
else:
|
||||
app.setAttribute(attr)
|
||||
|
||||
starter = PypeTrayStarter(app)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue