Skip to content
Snippets Groups Projects
Commit d48af4d3 authored by Christophe Geuzaine's avatar Christophe Geuzaine
Browse files

avoid reentrant check/compute

parent 1f970fe1
No related branches found
No related tags found
No related merge requests found
...@@ -537,6 +537,11 @@ void onelab_cb(Fl_Widget *w, void *data) ...@@ -537,6 +537,11 @@ void onelab_cb(Fl_Widget *w, void *data)
action = "check"; action = "check";
} }
if(FlGui::instance()->onelab->isBusy()){
Msg::Info("I'm busy! Ask me that later...");
return;
}
FlGui::instance()->onelab->setButtonMode("", "stop"); FlGui::instance()->onelab->setButtonMode("", "stop");
if(action == "compute") initializeLoops(); if(action == "compute") initializeLoops();
......
...@@ -12,8 +12,8 @@ DefineConstant ...@@ -12,8 +12,8 @@ DefineConstant
rt2 = {0.092, Label "Tube external radius", Path "Parameters"}, rt2 = {0.092, Label "Tube external radius", Path "Parameters"},
lb = {1, Label "Infinite box width", Path "Parameters"}, lb = {1, Label "Infinite box width", Path "Parameters"},
left = {1, Choices{0,1}, Label "Terminals on the left?", Path "Parameters"} left = {1, Choices{0,1}, Label "Terminals on the left?", Path "Parameters"}
macro = {"title.script", Label "Run my macro!", Path "Actions", macro = {"title.script", Label "Add title", Path "Macros",
Macro "Gmsh", AutoCheck "0"}, Macro "Gmsh", AutoCheck "0", Highlight "Turquoise"},
showLines = {Geometry.Lines, Choices {0,1}, Label "Show lines?", Path "Options", showLines = {Geometry.Lines, Choices {0,1}, Label "Show lines?", Path "Options",
GmshOption "Geometry.Lines", AutoCheck "0"} GmshOption "Geometry.Lines", AutoCheck "0"}
]; ];
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment