Browse Source

simplify exit logic

master
Randy Lai 5 years ago
parent
commit
b37956a603
  1. 5
      src/window_commands.py

5
src/window_commands.py

@ -20,8 +20,9 @@ class ProjectManagerCloseWindow(sublime_plugin.WindowCommand):
else:
self.window.run_command('close_all')
# exit if there are dirty views
if any([v.is_dirty() for v in self.window.views()]):
return
for v in self.window.views():
if v.is_dirty():
return
# close the sidebar
self.window.run_command('close_project')
# close the window

Loading…
Cancel
Save