Skip to content

Commit

Permalink
implement isopen (#2631)
Browse files Browse the repository at this point in the history
* implement isopen

* Update display.jl

* don't use master
  • Loading branch information
SimonDanisch committed Jan 26, 2023
1 parent fa5e6b3 commit 19a4401
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions WGLMakie/src/display.jl
Expand Up @@ -71,6 +71,11 @@ mutable struct Screen <: Makie.MakieScreen
end
end

function Base.isopen(screen::Screen)
three = get_three(screen)
return !isnothing(three) && isopen(three.session)
end

function mark_as_displayed!(screen::Screen, scene::Scene)
push!(screen.displayed_scenes, js_uuid(scene))
for child_scene in scene.children
Expand Down
2 changes: 1 addition & 1 deletion metrics/ttfp/run-benchmark.jl
Expand Up @@ -207,7 +207,7 @@ ENV["JULIA_PKG_PRECOMPILE_AUTO"] = 0
project1 = make_project_folder("current-pr")
Pkg.activate(project1)
if Package == "WGLMakie"
Pkg.add([(; name="Electron"), (; name="JSServe", rev="master")])
Pkg.add([(; name="Electron"), (; name="JSServe")])
end
pkgs = NamedTuple[(; path="./MakieCore"), (; path="."), (; path="./$Package"), (;name="BenchmarkTools")]
# cd("dev/Makie")
Expand Down

0 comments on commit 19a4401

Please sign in to comment.