Skip to content

Commit 1616b68

Browse files
committed
Adapt batch_plot.jl to MacOS
1 parent 0f840f8 commit 1616b68

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

examples/batch_plot.jl

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ end
1414

1515
using ControlPlots, KiteControllers, LaTeXStrings, Statistics, YAML
1616
using REPL.TerminalMenus
17+
using KiteModels: reactivate_host_app
1718

1819
include("yaml_utils.jl")
1920

@@ -393,6 +394,7 @@ function run_menu()
393394
catch e
394395
println("Error in $name: $e")
395396
end
397+
reactivate_host_app()
396398
else
397399
println("Left menu. Press <ctrl><d> to quit Julia!")
398400
active = false
@@ -412,6 +414,7 @@ function run_command(cmd::String)
412414
fn()
413415
println("Close the plot window to exit.")
414416
ControlPlots.plt.show(block=true)
417+
reactivate_host_app()
415418
end
416419

417420
if !__PRECOMPILE__

0 commit comments

Comments
 (0)