File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -84,12 +84,12 @@ function mt:loadFile(uri, libraryUri)
8484 log .info ((' Skip loaded file: %s' ):format (uri ))
8585 else
8686 local content = pub .awaitTask (' loadFile' , furi .decode (uri ))
87+ self .read = self .read + 1
88+ self :update ()
8789 if self ._cache [uri ] then
8890 return
8991 end
9092 self ._cache [uri ] = true
91- self .read = self .read + 1
92- self :update ()
9393 if not content then
9494 return
9595 end
@@ -113,12 +113,12 @@ function mt:loadFile(uri, libraryUri)
113113 log .info ((' Skip loaded file: %s' ):format (uri ))
114114 else
115115 local content = pub .awaitTask (' loadFile' , furi .decode (uri ))
116+ self .read = self .read + 1
117+ self :update ()
116118 if self ._cache [uri ] then
117119 return
118120 end
119121 self ._cache [uri ] = true
120- self .read = self .read + 1
121- self :update ()
122122 if not content then
123123 return
124124 end
You can’t perform that action at this time.
0 commit comments