Skip to content

Commit c3dbf2a

Browse files
committed
change implementation of loaded and close gui in descriptive names test
1 parent e04b8ed commit c3dbf2a

2 files changed

Lines changed: 2 additions & 1 deletion

File tree

src/utils_gen/structures_utils.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ end
1919
2020
Get a list of loaded packages.
2121
"""
22-
loaded() = filter((x) -> typeof(eval(x)) <: Module, names(Main, imported = true))
22+
loaded() = [String(n) for n names(Main, imported = true) if getfield(Main, n) isa Module]
2323

2424
"""
2525
place_nodes_in_circle(total_nodes::Int64, current_node::Int64, r::Float32, xₒ::Float32, yₒ::Float32)

test/test_descriptive_names.jl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,3 +63,4 @@ case, model, m, gui = run_case()
6363
EMGUI.close(gui3)
6464
end
6565
end
66+
EMGUI.close(gui)

0 commit comments

Comments
 (0)