file_manager: fix typo in directory check

Signed-off-by:  Eric Callahan <arksine.code@gmail.com>
This commit is contained in:
Arksine 2020-10-05 18:16:10 -04:00
parent 620fb356cc
commit 264e708c1d
1 changed files with 1 additions and 1 deletions

View File

@ -126,7 +126,7 @@ class FileManager:
if base == 'gcodes' and ext not in VALID_GCODE_EXTS:
continue
finfo = self.file_lists[base].get(fname, None)
if fname is None or f['modified'] != finfo['modified']:
if finfo is None or f['modified'] != finfo['modified']:
# Either a new file found or file has changed, update
# internal file list
self._update_file_list(base, do_notify=True)