mirror of
https://github.com/wolfpld/tracy.git
synced 2024-11-10 02:31:48 +00:00
Display notification if there's a problem with file selector.
This commit is contained in:
parent
11cafbff1d
commit
a6a265b548
@ -965,5 +965,15 @@ static void DrawContents()
|
||||
ImGui::EndPopup();
|
||||
}
|
||||
|
||||
if( tracy::Fileselector::HasFailed() ) ImGui::OpenPopup( "File selector is not available" );
|
||||
if( ImGui::BeginPopupModal( "File selector is not available", nullptr, ImGuiWindowFlags_AlwaysAutoResize ) )
|
||||
{
|
||||
ImGui::TextUnformatted( "File selector cannot be displayed." );
|
||||
ImGui::TextUnformatted( "Check nfd library implementation for details." );
|
||||
ImGui::Separator();
|
||||
if( ImGui::Button( "Ok" ) ) ImGui::CloseCurrentPopup();
|
||||
ImGui::EndPopup();
|
||||
}
|
||||
|
||||
bptr->EndFrame();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user