Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/wolfpld/tracy.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--profiler/src/main.cpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/profiler/src/main.cpp b/profiler/src/main.cpp
index 0c8ef61e..4b80380d 100644
--- a/profiler/src/main.cpp
+++ b/profiler/src/main.cpp
@@ -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();
}