1
0
mirror of https://github.com/wolfpld/tracy.git synced 2025-03-20 07:40:02 +08:00

fix TRACY_NO_FILESELECTOR macro

This commit is contained in:
Stone Tickle
2021-03-17 08:51:24 +09:00
parent ea2a7f639b
commit 1918c0ffe6
3 changed files with 20 additions and 8 deletions
+7 -1
View File
@@ -15,10 +15,13 @@
#include <GL/gl3w.h>
#include <GLFW/glfw3.h>
#include <memory>
#include "../nfd/nfd.h"
#include <sys/stat.h>
#include <locale.h>
#ifndef TRACY_NO_FILESELECTOR
# include "../nfd/nfd.h"
#endif
#ifdef _WIN32
# include <windows.h>
# include <shellapi.h>
@@ -747,6 +750,8 @@ static void DrawContents()
}
}
ImGui::SameLine( 0, ImGui::GetFontSize() * 2 );
#ifndef TRACY_NO_FILESELECTOR
if( ImGui::Button( ICON_FA_FOLDER_OPEN " Open saved trace" ) && !loadThread.joinable() )
{
nfdchar_t* fn;
@@ -792,6 +797,7 @@ static void DrawContents()
if( loadThread.joinable() ) { loadThread.join(); }
tracy::BadVersion( badVer );
}
#endif
if( !clients.empty() )
{