Skip to content

Fix: Prevent clicking disabled checkboxes#1075

Open
Alezito2008 wants to merge 1 commit intosmartcmd:mainfrom
Alezito2008:fix/checkbox-enabled-check
Open

Fix: Prevent clicking disabled checkboxes#1075
Alezito2008 wants to merge 1 commit intosmartcmd:mainfrom
Alezito2008:fix/checkbox-enabled-check

Conversation

@Alezito2008
Copy link
Contributor

Description

Prevents clicking on disabled checkboxes

Changes

Previous Behavior

It was still possible to click on disabled checkbox using the mouse

Root Cause

When clicking on a checkbox it wouldn't check if the checkbox is enabled

New Behavior

When clicking on a checkbox it now checks if the checkbox is enabled

Fix Implementation

Added a check for IsEnabled() before trying to click on a checkbox

AI Use Disclosure

No

Related Issues

@Alezito2008
Copy link
Contributor Author

Minecraft.2026-03-09.19-09-57.mp4

@eh-K
Copy link
Contributor

eh-K commented Mar 10, 2026

Good to merge. Works as intended.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug] Using a mouse allows for changing options that would otherwise be locked behind enabling host privileges

2 participants