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

Apply ToolBox.updateTools() to all tools, not just class-based tools #5040

Conversation

kwvanderlinde
Copy link
Collaborator

@kwvanderlinde kwvanderlinde commented Nov 10, 2024

Identify the Bug or Feature request

Fix PR #5019 so instance-based tools can be disabled.

Description of the Change

Toolbox.toolMap was meant to only support class-based tool lookups. But there was one remaining usage where it was used to update tools based on their isAvailable() method, overlooking instance-based tools in the process. This PR fixes things to check isAvailable() for all tools, whether instanced-based or class-based.

Possible Drawbacks

None

Documentation Notes

N/A

Release Notes

N/A


This change is Reviewable

@kwvanderlinde kwvanderlinde self-assigned this Nov 10, 2024
@kwvanderlinde kwvanderlinde force-pushed the fixup/pr-5019-tool-updates-for-instance-based-tools branch from 8cc976a to 54b9a16 Compare November 12, 2024 20:25
@cwisniew cwisniew added this pull request to the merge queue Nov 14, 2024
Merged via the queue into RPTools:develop with commit d47be8b Nov 14, 2024
4 checks passed
@kwvanderlinde kwvanderlinde deleted the fixup/pr-5019-tool-updates-for-instance-based-tools branch November 15, 2024 08:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Status: Merged
Development

Successfully merging this pull request may close these issues.

2 participants