Pass parent window handle to file dialogs.

This commit is contained in:
Bartosz Taudul
2026-07-02 01:07:48 +02:00
parent db383f738b
commit 836bf9d2eb

View File

@@ -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 )