1
0
mirror of https://github.com/wolfpld/tracy synced 2025-05-02 13:43:52 +00:00

Save trace file selector.

This commit is contained in:
Bartosz Taudul 2017-09-30 14:56:09 +02:00
parent 0de755124d
commit e4c5e5c097

View File

@ -16,6 +16,10 @@
#include "TracyImGui.hpp"
#include "TracyView.hpp"
#ifdef TRACY_FILESELECTOR
# include "../nfd/nfd.h"
#endif
namespace tracy
{
@ -757,6 +761,20 @@ void View::DrawConnection()
}
}
if( ImGui::Button( "Save trace" ) )
{
#ifdef TRACY_FILESELECTOR
nfdchar_t* fn;
auto res = NFD_SaveDialog( "tracy", nullptr, &fn );
if( res == NFD_OKAY )
#else
const char* fn = "trace.tracy";
#endif
{
}
}
ImGui::End();
}