Skip to content

Commit

Permalink
Remove settings changes and return early if nothing is returned from …
Browse files Browse the repository at this point in the history
…method call
  • Loading branch information
Garulf committed Jan 25, 2024
1 parent e3b1f1d commit 4682e43
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions pyflowlauncher/plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,9 +65,8 @@ def run(self) -> None:
method = request["method"]
parameters = request.get('parameters', [])
feedback = self._event_handler(method, *parameters)
# Inject settings if changed
if 'result' in feedback and self._settings is not None:
feedback['SettingsChange'] = self.settings
if not feedback:
return
self._client.send(feedback)

@property
Expand Down

0 comments on commit 4682e43

Please sign in to comment.