Skip to content

properties-window: Fix permission checkboxes needing two clicks with multiple files - #3845

Open
dualfroz wants to merge 1 commit into
linuxmint:masterfrom
dualfroz:dualfroz/exec-bit-multi-select
Open

dualfroz wants to merge 1 commit into
linuxmint:masterfrom
dualfroz:dualfroz/exec-bit-multi-select

Conversation

@dualfroz

Copy link
Copy Markdown

Fixes #3641

initial_permission_state_consistent() kept the full mode of the first file but compared the others after masking, so with more than one file the state never looked consistent and the first click just put the original permissions back.

tested on Mint 22.3 with two 0644 files: before, the first click on "Allow executing file as program" left both at 0644. with the fix it sets 0755 right away. same for the advanced r/w/x boxes, single files and mixed selections behave as before

…multiple files.

initial_permission_state_consistent() stored the full mode of the
first file but compared the other files against it after masking,
so with more than one file the initial state never looked
consistent. Enabling a permission checkbox then went to the
'mixed' state and restored the original permissions, and only the
second click actually applied the change.

Fixes linuxmint#3641
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.

nemo fail to change executable bit on multiple files

1 participant