From 836bf9d2ebc9ee280efa4e503e66c68e8aff38fd Mon Sep 17 00:00:00 2001 From: Bartosz Taudul Date: Thu, 2 Jul 2026 01:07:48 +0200 Subject: [PATCH] Pass parent window handle to file dialogs. --- profiler/src/profiler/TracyFileselector.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/profiler/src/profiler/TracyFileselector.cpp b/profiler/src/profiler/TracyFileselector.cpp index 2ad19a9e..48be8f2d 100644 --- a/profiler/src/profiler/TracyFileselector.cpp +++ b/profiler/src/profiler/TracyFileselector.cpp @@ -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 )