-
Notifications
You must be signed in to change notification settings - Fork 63
Tool window titles per dcc #1517
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: develop
Are you sure you want to change the base?
Tool window titles per dcc #1517
Conversation
MustafaJafar
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It works. Thanks.
Merging decision should be up to @iLLiCiTiT


BigRoy
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I like it visually. Code seems ok, but I think @iLLiCiTiT will be the more critical one in this area, so pending his code review.
| @property | ||
| def title(self): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should be method, not property, moved below (after public methods). And the app name should be defined in controller, I really do try a lot to not use anything host related in UI code.
| @property | |
| def title(self): | |
| def _get_title(self): |
iLLiCiTiT
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please move pipeline logic to backend (controller).
Changelog Description
Include the current application name in AYON tools Loader, Workfiles, Publisher, and Scene Inventory.
Additional Info
This pull request updates the window titles for several AYON tool windows to dynamically include the current application name, improving context for users working across multiple host applications. The changes introduce a new
titleproperty in each window class, which constructs the window title using either theAYON_APP_NAMEenvironment variable or the value returned byget_current_host_name().These changes are for the Loader, Workfiles, Publisher, and Scene Inventory.
Title looks like this when launched from a DCC like Harmony:

And in Windows 11 for example, when hovering over the Taskbar item, clearly shows the DCC this tool belongs to.

Window Title Improvements:
titleproperty toLoaderWindow,PublisherWindow,SceneInventoryWindow, andWorkfilesToolWindowclasses to dynamically generate window titles with the current application name, usingAYON_APP_NAMEorget_current_host_name()if available. [1] [2] [3] [4]titleproperty for setting the window title, replacing previous static titles. [1] [2] [3]Imports and Dependencies:
osandget_current_host_namein all relevant files to support dynamic title generation. [1] [2] [3] [4]Testing Notes