diff --git a/MarkdownBuild.py b/MarkdownBuild.py index 3a8372f..f66f9ec 100644 --- a/MarkdownBuild.py +++ b/MarkdownBuild.py @@ -51,9 +51,9 @@ def run(self): self.window.open_file(output.name) elif open_html_in == "sublime": self.window.open_file(output.name) - else: + elif open_html_in != "none": webbrowser.open("file://" + output.name) - + #sublime.set_timeout(partial(ctypes.windll.user32.SwitchToThisWindow,sublime.active_window().hwnd(), 0), 250) #sublime.set_timeout(partial(ctypes.windll.user32.ShowWindow,sublime.active_window().hwnd(), 5), 500) #sublime.set_timeout(partial(ctypes.windll.user32.SetActiveWindow,sublime.active_window().hwnd()), 500) diff --git a/MarkdownBuild.sublime-settings b/MarkdownBuild.sublime-settings index 7637fd9..626068a 100644 --- a/MarkdownBuild.sublime-settings +++ b/MarkdownBuild.sublime-settings @@ -1,6 +1,6 @@ { "output_html" : false, - "open_html_in" : "browser", // possible values are "browser", "sublime", or "both", default is "browser" + "open_html_in" : "browser", // possible values are "browser", "sublime", "both", or "none", default is "browser" "use_css" : true, - "charset" : "UTF-8" + "charset" : "UTF-8" } \ No newline at end of file