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

Backport PR #22819 on branch 6.x (PR: Fix enabled state of Run plugin actions when a file type doesn't have an associated configuration) #22821

Merged
merged 1 commit into from
Nov 3, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion spyder/plugins/run/container.py
Original file line number Diff line number Diff line change
Expand Up @@ -313,7 +313,11 @@ def currently_selected_configuration(self):

def switch_focused_run_configuration(self, uuid: Optional[str]):
uuid = uuid or None
if uuid == self.currently_selected_configuration:

# We need the first check to correctly update the run and context
# actions when the config is None.
# Fixes spyder-ide/spyder#22607
if uuid is not None and uuid == self.currently_selected_configuration:
return

self.metadata_model.set_current_run_configuration(uuid)
Expand Down
2 changes: 1 addition & 1 deletion spyder/widgets/mixins.py
Original file line number Diff line number Diff line change
Expand Up @@ -1452,7 +1452,7 @@ def get_match_number(self, pattern, case=False, regexp=False, word=False):
word=word)
return match_number

# ---- Array builder helper / See 'spyder/widgets/arraybuilder.py'
# ---- Array builder helper methods
# -------------------------------------------------------------------------
def enter_array_inline(self):
"""Enter array builder inline mode."""
Expand Down
Loading