file_manager: fix typo in directory check
Signed-off-by: Eric Callahan <arksine.code@gmail.com>
This commit is contained in:
parent
620fb356cc
commit
264e708c1d
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue