Merge pull request #6 from nicokratky/master

used variable instead of calling os.listdir() again
This commit is contained in:
Philip Trauner 2016-03-22 20:09:47 +01:00
commit da7f850496

View file

@ -188,7 +188,7 @@ class Fl0wCommand(sublime_plugin.WindowCommand):
folder = self.window.folders()[0]
files = os.listdir(folder)
if not ".no-fl0w" in files:
if not ".flow" in os.listdir(folder):
if not ".flow" in files:
if sublime.ok_cancel_dialog("""We've detected that this is your first time using fl0w in your current directory.
We don't want to be responsible for any lost work so please backup your files before proceding.
(An empty project directory is recommended but not necessary.)""", "Yes"):