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:
authorBartosz Taudul <wolf@nereid.pl>2022-10-30 01:42:45 +0300
committerBartosz Taudul <wolf@nereid.pl>2022-10-30 01:42:45 +0300
commita6a265b548ba5f7e4f982405cd3e76ff8026b9c0 (patch)
tree8c8081ca41895493a7fc60d6e03c933be07c20b5
parent11cafbff1d47b6ff0717f909183fc7129c3b03b0 (diff)
Display notification if there's a problem with file selector.
-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();
}