destroying the panel also hides it
@@ -122,11 +122,9 @@ class SublimeLinterPanelToggleCommand(sublime_plugin.WindowCommand):
Pass show=False for hiding.
"""
if show:
- cmd = "show_panel"
+ self.window.run_command("show_panel", {"panel": "output." + PANEL_NAME})
else:
- cmd = "hide_panel"
-
- self.window.run_command(cmd, {"panel": "output." + PANEL_NAME})
+ self.window.destroy_output_panel(PANEL_NAME)
class SublimeLinterUpdatePanelCommand(sublime_plugin.TextCommand):
