Permalink
Browse files

Workaround for the error message before main window issue on Win.

  • Loading branch information...
1 parent e63cec7 commit 04c2f5358a2d2ea66916f31da4a55e28e66cdac3 @quarnster committed Oct 28, 2012
Showing with 5 additions and 1 deletion.
  1. +5 −1 common.py
View
@@ -35,7 +35,11 @@ def run_in_main_thread(func):
def error_message(msg):
- sublime.error_message(msg)
+ # Work around for http://www.sublimetext.com/forum/viewtopic.php?f=3&t=9825
+ if sublime.active_window() == None:
+ sublime.set_timeout(lambda: error_message(msg), 500)
+ else:
+ sublime.error_message(msg)
language_regex = re.compile("(?<=source\.)[\w+#]+")

0 comments on commit 04c2f53

Please sign in to comment.