Skip to content

Commit

Permalink
fix reload_module call from watchdog
Browse files Browse the repository at this point in the history
  • Loading branch information
th3w1zard1 committed May 20, 2024
1 parent 141ebb8 commit ab0e6d7
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Tools/HolocronToolset/src/toolset/gui/windows/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -431,8 +431,10 @@ def onModuleFileUpdated(self, changedFile: str, eventType: str):
if eventType == "deleted":
self.onModuleRefresh()
else:
if not self.active:
return
# Reload the resource cache for the module
self.active.reload_module(changedFile)
self.active.reload_module(PurePath(changedFile).name)
# If the current module opened is the file which was updated, then we
# should refresh the ui.
if self.ui.modulesWidget.currentSection() == changedFile:
Expand Down

0 comments on commit ab0e6d7

Please sign in to comment.