enable devListener

This commit is contained in:
Mathieu PATUREL
2017-01-22 17:51:48 +11:00
parent c27cd5f210
commit d707cf7a47

View File

@ -7,13 +7,13 @@ import os.path
class MLPDevListener(sublime_plugin.EventListener):
def on_post_save(self, view):
return
# return
if not (os.path.dirname(__file__) in view.file_name() and
view.file_name().endswith('.py')):
return
sublime.run_command('reload_plugin', {
'main': os.path.join(sublime.packages_path(),
'MarkdownLivePreview', 'md_in_popup.py'),
'main': os.path.join(sublime.packages_path(), 'MarkdownLivePreview',
'MarkdownLivePreview.py'),
'scripts': ['image_manager', 'functions', 'MLPApi',
'setting_names'],
'quiet': True