| 6 | { |
| 7 | |
| 8 | void 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 |
no test coverage detected