Skip to content

Commit 092b565

Browse files
committed
Add delay before showing quick panel for templates.
1 parent 9e4c6da commit 092b565

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

advanced_new_file/commands/new_file_command.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import sublime
12
import sublime_plugin
23
import os
34
import xml.etree.ElementTree as ET
@@ -72,7 +73,7 @@ def on_load(self, view):
7273
entries = list(map(self.get_basename, template))
7374
self.entries = list(map(self.expand_path, template))
7475
self.view = view
75-
view.window().show_quick_panel(entries, self.quick_panel_selection)
76+
sublime.set_timeout(lambda: view.window().show_quick_panel(entries, self.quick_panel_selection), 10)
7677
else:
7778
view.run_command("insert_snippet", {"contents": template})
7879
view.settings().set("_anf_new", "")

0 commit comments

Comments
 (0)