Draft: Issue #9287: Prevent locks from being removed when a mask is added
This patch attempts to resolve #9287.
Masks are always set to editable when clicked in the Layer Tree View. If the layer is pixel or position locked, those locks are automatically removed. This may not be desirable, so this patch adds a check to see if the layer is pixel or position locked. The mask is only set to editable if those locks aren't applied.
@pixelmixer Hi! Does this fix the problem for you? I'm not sure if you just wanted the locks not be removed if you accidentally clicked on the mask, or if there was another issue.