Skip to content

Commit

Permalink
Set priotity to force Imgui as the default GUI (#149)
Browse files Browse the repository at this point in the history
  • Loading branch information
bakpaul authored Feb 12, 2025
1 parent 98d4a28 commit e47c8b5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion SofaGLFW/src/SofaGLFW/initSofaGLFW.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ void initExternalModule()
{
first = false;
#if SOFAGLFW_HAVE_SOFA_GUI_COMMON
sofa::gui::common::GUIManager::RegisterGUI("glfw", &sofaglfw::SofaGLFWGUI::CreateGUI);
sofa::gui::common::GUIManager::RegisterGUI("glfw", &sofaglfw::SofaGLFWGUI::CreateGUI,nullptr,0);
#endif // SOFAGLFW_HAVE_SOFA_GUI_COMMON
}
}
Expand Down
2 changes: 1 addition & 1 deletion SofaImGui/src/SofaImGui/initSofaImGui.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ void initExternalModule()
sofa::helper::logging::MessageDispatcher::addHandler(&sofa::helper::logging::MainLoggingMessageHandler::getInstance());
sofa::helper::logging::MainLoggingMessageHandler::getInstance().activate();

sofa::gui::common::GUIManager::RegisterGUI("imgui", &sofaimgui::ImGuiGUI::CreateGUI);
sofa::gui::common::GUIManager::RegisterGUI("imgui", &sofaimgui::ImGuiGUI::CreateGUI,nullptr,1);
}
}

Expand Down

0 comments on commit e47c8b5

Please sign in to comment.