Skip to content

Commit

Permalink
Fixed WIN32 compilation.
Browse files Browse the repository at this point in the history
  • Loading branch information
fredzo committed Sep 16, 2024
1 parent d2a1a2f commit e7373dd
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/ngscopeclient/NFDFileBrowser.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -127,30 +127,30 @@ optional<string> NFDFileBrowser::ThreadProc()
}

nfdchar_t* outPath;
nfdfilteritem_t filterItem = { m_filterName.c_str(), m_filterMask.c_str() };
nfdu8filteritem_t filterItem = { m_filterName.c_str(), m_filterMask.c_str() };
nfdresult_t result;
if(m_saveDialog)
{
//Fill out arguments
nfdsavedialognargs_t args;
nfdsavedialogu8args_t args;
args.filterList = &filterItem;
args.filterCount = 1;
args.defaultPath = nullptr;
NFD_GetNativeWindowFromGLFWWindow(m_parent->GetWindow(), &args.parentWindow);

result = NFD_SaveDialogN_With(&outPath, &args);
result = NFD_SaveDialogU8_With(&outPath, &args);
}
else
{
//Fill out arguments
nfdopendialognargs_t args;
nfdopendialogu8args_t args;
args.filterList = &filterItem;
args.filterCount = 1;
args.defaultPath = nullptr;
NFD_GetNativeWindowFromGLFWWindow(m_parent->GetWindow(), &args.parentWindow);

//And run the dialog
result = NFD_OpenDialogN_With(&outPath, &args);
result = NFD_OpenDialogU8_With(&outPath, &args);
}
if(result == NFD_OKAY)
{
Expand Down

0 comments on commit e7373dd

Please sign in to comment.