Trying to create shortcut for ‘Add Videos’

I want an easy to access button to open the dialog that the ‘add videos’ button will open.

I have identified the skin xml file that opens the dialog. The window ID is also identified.

So I am adding that to favourites by adding the line : <favourite name=”Addvideos”>ActivateWindow(129)</favourite>

Then I selected this favourite in one of the available skin button shortcuts.

When I click the button the dialog opens just fine, but when I click ‘Browse’ to go to the location I want to add Kodi crashes. Any suggestions? Please help.

crash log here – https://pastebin.com/98vNxfTL