Skip to content

Commit

Permalink
DisplayTransformPlugValueWidget : Improve wording around defaults
Browse files Browse the repository at this point in the history
  • Loading branch information
johnhaddon committed Oct 16, 2024
1 parent 99cc64d commit 1c885aa
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions python/GafferImageUI/OpenColorIOConfigPlugUI.py
Original file line number Diff line number Diff line change
Expand Up @@ -202,11 +202,7 @@ def _updateFromValues( self, values, exception ) :
# Only show the View name, because the Display name is more of
# a "set once and forget" affair. The menu shows both for when
# you need to check.
self.__menuButton.setText(
f"Default ({self.__currentView})"
if self.__currentValue == "__default__"
else self.__currentView
)
self.__menuButton.setText( self.__currentView )
self.__menuButton.setErrored( not valid )

def _valuesDependOnContext( self ) :
Expand Down Expand Up @@ -262,12 +258,13 @@ def __menuDefinition( self ) :

# Default section

result.append( "/__DefaultDivider__", { "divider" : True, "label" : "Default" } )
result.append( "/__OptionsDivider__", { "divider" : True, "label" : "Options" } )

result.append(
f"/Default", {
f"/Use Default Display And View", {
"command" : functools.partial( Gaffer.WeakMethod( self.__setToDefault ) ),
"checkBox" : self.__currentValue == "__default__",
"description" : "Always uses the default display and view for the current config. Useful when changing configs often, or using context-sensitive configs."
}
)

Expand Down

0 comments on commit 1c885aa

Please sign in to comment.