Display notification if there's a problem with file selector.

This commit is contained in:
Bartosz Taudul 2022-10-30 00:42:45 +02:00
parent 11cafbff1d
commit a6a265b548
No known key found for this signature in database
GPG Key ID: B7FE2008B7575DF3

View File

@ -965,5 +965,15 @@ static void DrawContents()
ImGui::EndPopup(); 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(); bptr->EndFrame();
} }