mirror of
https://github.com/wolfpld/tracy.git
synced 2026-07-16 11:09:32 +00:00
Pass parent window handle to file dialogs.
This commit is contained in:
@@ -88,6 +88,7 @@ static bool OpenFileImpl( const char* ext, const char* desc, const std::function
|
||||
const nfdopendialogu8args_t args = {
|
||||
.filterList = &filter,
|
||||
.filterCount = 1,
|
||||
.parentWindow = s_windowHandle,
|
||||
};
|
||||
const auto res = NFD_OpenDialogU8_With( &fn, &args );
|
||||
if( res == NFD_OKAY )
|
||||
@@ -113,6 +114,7 @@ static bool SaveFileImpl( const char* ext, const char* desc, const std::function
|
||||
const nfdsavedialogu8args_t args = {
|
||||
.filterList = &filter,
|
||||
.filterCount = 1,
|
||||
.parentWindow = s_windowHandle,
|
||||
};
|
||||
const auto res = NFD_SaveDialogU8_With( &fn, &args );
|
||||
if( res == NFD_OKAY )
|
||||
|
||||
Reference in New Issue
Block a user