I have two questions about quick panel API in Sublime Text 2.
- How can I update the items being shown in quick panel
Say for example, I am using the following command to display the contents of list/array itemsList in quick panel.
self.window.show_quick_panel(itemsList, self.on_done)
I want that when the contents of itemsList are changed, the contents being shown in quick panel should change.
What I am doing right now is when the list itemsList is updated, I call show_quick_panel once again to show the new contents, but what that does is it opens two quick panels. Hence my question that how can I update the quick panel to show contents of itemsList here.
- In case contents cannot be updated, can I close the quick panel programmatically?