Open file dialog.

This commit is contained in:
Bartosz Taudul 2017-09-30 14:32:30 +02:00
parent 7284d00965
commit c92715a6c0

View File

@ -4,6 +4,7 @@
#include <GL/gl3w.h>
#include <GLFW/glfw3.h>
#include <memory>
#include "../nfd/nfd.h"
#include "../../server/TracyView.hpp"
@ -61,6 +62,16 @@ int main(int, char**)
{
view = std::make_unique<tracy::View>( addr );
}
ImGui::Separator();
if( ImGui::Button( "Open saved trace" ) )
{
nfdchar_t* fn;
auto res = NFD_OpenDialog( "tracy", nullptr, &fn );
if( res == NFD_OKAY )
{
}
}
ImGui::End();
}
else