reupen / album_list_panel

Album list panel for Columns UI
https://yuo.be/album-list-panel
GNU Lesser General Public License v3.0
44 stars 1 forks source link

Selection type is incorrectly reported #286

Open regorxxx opened 5 days ago

regorxxx commented 5 days ago

This method from SMP https://theqwertiest.github.io/foo_spider_monkey_panel/assets/generated_files/docs/html/fb.html#.GetSelectionType Reports any selection from this panel as 0.

I have tried the same on a DUI panel and it's returned properly as 6 (media_library_viewer). Done the same with JSP3, same results.

function on_selection_changed() { console.log(fb.GetSelectionType()); }

Therefore I thought it would be reasonable to report it to you, since it seems to be a CUI bug. I suppose it has implications in the integration along other panels apart from JS scripts.

reupen commented 5 days ago

I believe the selection type also drives the 'Library viewer selection playlist' (which is currently not supported, of course). So there's a bit more thought required than just changing the selection type value.