Question
simple_list is unusable
I have found following problem with simple_list:
I have popup_menu:
f:popup_menu {
value = bind 'inputSwitch',
items = {"web", "json", "csv"},
},
a transform function:
local function isWebSelected( val, fromModel )
if "web" == val then return true
else return false end
end
and a simple_list wich is enabled, when the "web" is selected:
f:simple_list{
value = LrView.bind{ key = 'selectedSession' },
items = LrView.bind{ key = 'webSessions' },
visible = LrView.bind{ key = 'loginStatus' },
enabled = LrView.bind{ key = 'inputSwitch', transform= isWebSelected },
allows_multiple_selection = false,
},
and although simple_list properly switches state from enabled/disabled - when I enable it - it's unusable - not able to scroll or select anything.
but when I change this binding to something else, like:
local function isJsonSelected( val, fromModel )
if "json" == val then return true
else return false end
end
enabled = LrView.bind{ key = 'inputSwitch', transform= isJsonSelected },
then it works fine (except for the logic)
