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

tweak

parent 955c9c5f
No related branches found
No related tags found
No related merge requests found
......@@ -1143,6 +1143,13 @@ void onelabWindow::setButtonMode(const std::string &butt0, const std::string &bu
}
}
bool onelabWindow::isBusy()
{
std::string s(_butt[1]->label());
if(s == "Compute") return false;
return true;
}
void onelabWindow::rebuildSolverList()
{
// update OneLab window title and gear menu
......@@ -1256,7 +1263,9 @@ void solver_cb(Fl_Widget *w, void *data)
else
FlGui::instance()->onelab->rebuildSolverList();
if(FlGui::instance()->onelab->getButtonMode() == "Compute")
if(FlGui::instance()->onelab->isBusy())
FlGui::instance()->onelab->show();
else
onelab_cb(0, (void*)"check");
}
......
......@@ -39,7 +39,7 @@ class onelabWindow{
void rebuildSolverList();
void rebuildTree();
void setButtonMode(const std::string &butt0, const std::string &butt1);
std::string getButtonMode(){ return _butt[1]->label(); }
bool isBusy();
void show(){ _win->show(); }
int shown(){ return _win->shown(); }
int meshAuto(){ return _gear->menu()[2].value(); }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment