import sublime, sublime_plugin
class exampl(sublime_plugin.TextCommand): def run(self, view): if self.view.window().is_sidebar_visible(): self.view.window().set_sidebar_visible(0) else: self.view.window().set_sidebar_visible(1)
This does nothing?
import sublime, sublime_plugin
class exampl(sublime_plugin.TextCommand): def run(self, view): if self.view.window().is_sidebar_visible(): self.view.window().set_sidebar_visible(0) else: self.view.window().set_sidebar_visible(1)
This does nothing?
It works, must be boolean
if sublime.active_window().is_sidebar_visible(): sublime.active_window().set_sidebar_visible(False) else: sublime.active_window().set_sidebar_visible(True)