Skip to content

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

Merged
cwisniew merged 1 commit into
RPTools:developfrom
kwvanderlinde:fixup/pr-5019-tool-updates-for-instance-based-tools
Nov 14, 2024
Merged

Apply ToolBox.updateTools() to all tools, not just class-based tools#5040
cwisniew merged 1 commit into
RPTools:developfrom
kwvanderlinde:fixup/pr-5019-tool-updates-for-instance-based-tools

Conversation

@kwvanderlinde

@kwvanderlinde kwvanderlinde commented Nov 10, 2024

Copy link
Copy Markdown
Collaborator

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
@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

No open projects
Status: Merged

Development

Successfully merging this pull request may close these issues.

2 participants