Skip to content

Commit

Permalink
[6.2.0] 更新 FileWatcher
Browse files Browse the repository at this point in the history
  • Loading branch information
Bkm016 committed Oct 27, 2024
1 parent 0a72d90 commit 91fbfbb
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ class ResourceReader(val clazz: Class<*>, val migrate: Boolean = true) {
files[code] = it
// 文件变动监听
if (isFileWatcherHook) {
FileWatcher.INSTANCE.addSimpleListener(file) {
FileWatcher.INSTANCE.addSimpleListener(file) { _ ->
it.nodes.clear()
loadNodes(sourceFile, it.nodes, code)
loadNodes(Configuration.loadFromFile(file), it.nodes, code)
Expand Down

0 comments on commit 91fbfbb

Please sign in to comment.