Skip to content

Commit

Permalink
refactor: rename "operator" to "self" in _handle_formation_change()
Browse files Browse the repository at this point in the history
  • Loading branch information
ntamas committed Apr 12, 2024
1 parent 475c501 commit 92cfcd3
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/modules/sbstudio/plugin/model/storyboard.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,9 +80,10 @@ def label(self) -> str:
return " | ".join(parts)


def _handle_formation_change(operator, context):
if not operator.is_name_customized:
operator.name = operator.formation.name if operator.formation else ""
def _handle_formation_change(self: StoryboardEntry, context: Optional[Context] = None):
if not self.is_name_customized:
self.name = self.formation.name if self.formation else ""



class StoryboardEntry(PropertyGroup):
Expand Down

0 comments on commit 92cfcd3

Please sign in to comment.