Closed phantom10111 closed 5 months ago
Hmm iiuc this won't work without additional changes because to code to disable measure lines specifically looks for the string "Off" which when localized wouldn't be correct and would result in measure lines always being on.
It does work because the default behavior of SaveSelection()
is to use Values
which contains the non-localized strings. The bug in the original code was caused by using Choices
instead which contains the localized strings used for display. I also tested it locally with Polish localization to make sure.
OH I see where I went wrong. Perfect thanks for the fix!
Use
Values
instead ofChoices
to properly display localized choices in the menu and removeSaveSelection()
since the default function does the right thing automatically.