used variable instead of calling os.listdir() again

This commit is contained in:
Nico Kratky 2016-03-22 20:05:06 +01:00
parent 24a66fd4a9
commit 99be4a286e

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"):