Skip to content

Commit a4aa55e

Browse files
Anderson, ChaseAnderson, Chase
Anderson, Chase
authored and
Anderson, Chase
committed
Fixed Package Control install warning to only show on run and not initialization
1 parent 882b347 commit a4aa55e

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

linter_install.py

+5-1
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,16 @@
11
import sublime, sublime_plugin
22
import threading
3+
import_error = False
34
try:
45
package_manager = __import__("Package Control").package_control.package_manager
56
except ImportError:
6-
sublime.error_message("Package Control is not installed. Install Package Control before continuing.")
7+
import_error = True
78

89
class LinterInstallCommand(sublime_plugin.ApplicationCommand):
910
def run(self):
11+
if import_error:
12+
sublime.error_message("Package Control is not installed. Install Package Control before continuing.")
13+
return
1014
t = threading.Thread(target=self.installer)
1115
t.start()
1216

0 commit comments

Comments
 (0)