Skip to content
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

EMSUSD-249 Refactors relative path dialog options to be more clear #3195

Conversation

AramAzhari-adsk
Copy link
Collaborator

@AramAzhari-adsk AramAzhari-adsk commented Jul 4, 2023

EMSUSD-249 Refactors relative path dialog options to be more clear

@@ -142,7 +139,6 @@ def uiInit(cls, parentLayout, canBeRelative, relativeToWhat):
showPreviewFields = cmds.file(q=True, exists=True)
Copy link
Collaborator

@pierrebai-adsk pierrebai-adsk Jul 5, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think the two-lines conditional above can be removed, and the showPreviewFields variable above it.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Wouldn't we still want to show the unresolved field? (Now called Path Preview)

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh sorry, the variable is also usedfor the other field, NVM, I thought it was only for the resolved path.

Copy link
Collaborator

@pierrebai-adsk pierrebai-adsk left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Only need to remove 3 more lines, otherwise LGTM

pierrebai-adsk
pierrebai-adsk previously approved these changes Jul 5, 2023
Copy link
Collaborator

@pierrebai-adsk pierrebai-adsk left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

samuelliu-adsk
samuelliu-adsk previously approved these changes Jul 5, 2023
@AramAzhari-adsk AramAzhari-adsk added the ready-for-merge Development process is finished, PR is ready for merge label Jul 5, 2023
widgetColumn = cmds.columnLayout()
cmds.checkBox(cls.kMakePathRelativeCheckBox, label=kMakePathRelativeStr, ann=kMakePathRelativeAnnStr)

cmds.checkBox(cls.kMakePathRelativeCheckBox, edit=True, changeCommand=cls.onMakePathRelativeChanged)
cmds.textFieldGrp(cls.kUnresolvedPathTextField, label=kUnresolvedPathStr, ann=kUnresolvedPathAnnStr, editable=False)
cmds.textFieldGrp(cls.kResolvedPathTextField, label=kResolvedPathStr, ann=kResolvedPathAnnStr , editable=False)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think line 39 should also be removed (where this string is set).

@AramAzhari-adsk AramAzhari-adsk removed the ready-for-merge Development process is finished, PR is ready for merge label Jul 5, 2023
@seando-adsk seando-adsk merged commit f3100e0 into dev Jul 5, 2023
12 checks passed
@seando-adsk seando-adsk deleted the azharia/EMSUSD-249/RefactorRelativePathDialogOptionsToBeMoreClear branch July 5, 2023 16:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
adsk Related to Autodesk plugin
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants