MCPcopy Create free account
hub / github.com/MeshInspector/MeshLib / showModal

Function showModal

source/MRViewer/MRShowModal.cpp:8–21  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

6{
7
8void showModal( const std::string& msg, NotificationType type )
9{
10 if ( auto menu = ImGuiMenu::instance() )
11 menu->showModalMessage( msg, type );
12 else
13 {
14 if ( type == NotificationType::Error )
15 spdlog::error( "Show Error: {}", msg );
16 else if ( type == NotificationType::Warning )
17 spdlog::warn( "Show Warning: {}", msg );
18 else //if ( type == MessageType::Info )
19 spdlog::info( "Show Info: {}", msg );
20 }
21}
22
23} //namespace MR

Callers 6

reorderSceneIfNeeded_Method · 0.85
showErrorFunction · 0.85
itemPressed_Method · 0.85
pushNotificationFunction · 0.85
loadFilesMethod · 0.85
actionMethod · 0.85

Calls 2

instanceFunction · 0.85
showModalMessageMethod · 0.80

Tested by

no test coverage detected