Skip to content

Commit

Permalink
Merge pull request #23211 from ccordoba12/disable-run-conf-per-file
Browse files Browse the repository at this point in the history
PR: Enable/disable the `Configuration per file` action according to the current file run configuration (Run)
  • Loading branch information
ccordoba12 authored Dec 7, 2024
2 parents 91083d5 + 2a24b13 commit b3606e2
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion spyder/plugins/run/container.py
Original file line number Diff line number Diff line change
Expand Up @@ -324,6 +324,7 @@ def switch_focused_run_configuration(self, uuid: Optional[str]):

if uuid is not None:
self.run_action.setEnabled(True)
self.configure_action.setEnabled(True)

metadata = self.metadata_model[uuid]
self.current_input_provider = metadata['source']
Expand All @@ -336,7 +337,8 @@ def switch_focused_run_configuration(self, uuid: Optional[str]):
return

self.run_action.setEnabled(False)

self.configure_action.setEnabled(False)

for context, act, mod in self.context_actions:
action, __ = self.context_actions[(context, act, mod)]
action.setEnabled(False)
Expand Down

0 comments on commit b3606e2

Please sign in to comment.