Closed qarmin closed 4 days ago
Closing, condition is not always false since it is wired to a toggle action.
I think it's indeed an issue. If lock
is true then the first branch will be executed, whereas if lock
is false then the condition of the second branch will be false as well, so the else
branch will be executed. The second branch is always unused.
When this feature was first introduced, it looked like this.
Then the next commit that modified these code is
https://github.com/nomacs/nomacs/blob/5377c452f4f0e1133754c118bc3d9dd4433609d9/ImageLounge/src/DkGui/DkNoMacs.cpp#L795-L806
If lock is true, then first condition is executed, but if
lock
is false, then second condition is omitted and never ever will be executed