Skip to content

Commit 5dc9d9b

Browse files
committed
Close DocMan on exit
1 parent 9e87877 commit 5dc9d9b

File tree

2 files changed

+7
-4
lines changed

2 files changed

+7
-4
lines changed

resources/ecs/codex.ecs

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@
4141
a Link
4242
a Index
4343
module TestModule
44+
module DocManModule
4445
callback DecoratorCallback
4546
variable Password
4647
variable PasswordRequested
@@ -138,7 +139,7 @@
138139

139140
create Screen in Body
140141
create Container in Screen
141-
set the style of Container to `width:100%;height:100%;display:flex;flex-direction: column`
142+
set the style of Container to `width:100%;height:100%;display:flex;flex-direction: column`
142143

143144
create Controls in Container
144145
set the style of Controls to `flex:5em`
@@ -277,7 +278,7 @@
277278

278279
gosub to ShowHelpPage
279280
rest get Script from `/resources/ecs/docman.ecs`
280-
run Script with ReferencePanel
281+
run Script with ReferencePanel as DocManModule
281282
put empty into storage as `.ref`
282283

283284
get Item from storage as `.ref`
@@ -305,9 +306,10 @@
305306
end
306307
on click Exit
307308
begin
309+
send `close` to DocManModule
308310
remove element Body
309-
send `restore` to parent
310-
exit
311+
send `restore` to parent
312+
exit
311313
end
312314

313315
on message

resources/ecs/docman.ecs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -123,6 +123,7 @@
123123
end
124124
json sort Packages
125125
set ready
126+
on message exit
126127

127128
Restart:
128129
clear Container

0 commit comments

Comments
 (0)