Hello,
I’m writing a plugin:
class ClassCreate(sublime_plugin.WindowCommand):
def run(self):
# Ask for directory path
self.window.show_input_panel(
'Podaj ścieżkę do katalogu docelowego plików:',
'.', self.__on_done, None, None)
# Ask for name
self.window.show_input_panel(
'Podaj ścieżkę i nazwę tworzonej klasy:',
'NowaKlasa', self.__on_class_name_done, None, None)
I need to get input from user two times:
- first call to show_input_panel() - view is not showing up, method self.__on_done is never executed.
- second call to show_input_panel() - everything is working fine
Why first call to show_input_panel() fails and second one is working?