Merge pull request #6 from nicokratky/master
used variable instead of calling os.listdir() again
This commit is contained in:
commit
da7f850496
1 changed files with 1 additions and 1 deletions
|
@ -188,7 +188,7 @@ class Fl0wCommand(sublime_plugin.WindowCommand):
|
||||||
folder = self.window.folders()[0]
|
folder = self.window.folders()[0]
|
||||||
files = os.listdir(folder)
|
files = os.listdir(folder)
|
||||||
if not ".no-fl0w" in files:
|
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.
|
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.
|
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"):
|
(An empty project directory is recommended but not necessary.)""", "Yes"):
|
||||||
|
|
Reference in a new issue