Added Doc:on_close() for plugins
This commit is contained in:
1 parent
bd02095a13
commit
1a51dad23c
2 files changed
+9
-3
No files matched your search
+1
-1
@@ -972,7 +972,7 @@ function core.step()
|
||||
local doc = core.docs[i]
|
||||
if #core.get_views_referencing_doc(doc) == 0 then
|
||||
table.remove(core.docs, i)
|
||||
core.log_quiet("Closed doc \"%s\"", doc:get_name())
|
||||
doc:on_close()
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
Reference in new issue
Block a user