mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-25 05:14:40 +01:00
use 'SetCurrentProcessExplicitAppUserModelID' only when running from code
This commit is contained in:
parent
bae63d5e01
commit
cafbff361b
1 changed files with 2 additions and 2 deletions
|
|
@ -12,7 +12,7 @@ from qtpy import QtWidgets, QtCore
|
|||
import qtawesome
|
||||
import appdirs
|
||||
|
||||
from ayon_core.lib import JSONSettingRegistry
|
||||
from ayon_core.lib import JSONSettingRegistry, is_running_from_build
|
||||
from ayon_core.pipeline import install_host
|
||||
from ayon_core.hosts.traypublisher.api import TrayPublisherHost
|
||||
from ayon_core.tools.publisher.control_qt import QtPublisherController
|
||||
|
|
@ -265,7 +265,7 @@ def main():
|
|||
|
||||
app_instance = get_ayon_qt_app()
|
||||
|
||||
if platform.system().lower() == "windows":
|
||||
if not is_running_from_build() and platform.system().lower() == "windows":
|
||||
import ctypes
|
||||
ctypes.windll.shell32.SetCurrentProcessExplicitAppUserModelID(
|
||||
u"traypublisher"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue