fixed incorrect warning message

This commit is contained in:
Dmitry Stepanov
2025-08-21 21:23:29 +03:00
parent 2f81e0d7c6
commit 9f5a39bd44
+3 -1
View File
@@ -829,7 +829,9 @@ impl ResourceManagerState {
notify::EventKind::Modify(_) => {
changed_resources.insert(relative_path);
}
notify::EventKind::Remove(_) => {
// The resource may be moved together with its metadata, so we need to check
// if the resource is actually registered.
notify::EventKind::Remove(_) if registry.is_registered(&relative_path) => {
match registry.modify().remove_metadata(&relative_path) {
Ok(_) => {
info!(