Skip to content

Make file/folder dialogs automatically come to foreground on Windows#16

Merged
ds5678 merged 1 commit intoAssetRipper:masterfrom
misterbubb:master
Feb 7, 2026
Merged

Make file/folder dialogs automatically come to foreground on Windows#16
ds5678 merged 1 commit intoAssetRipper:masterfrom
misterbubb:master

Conversation

@misterbubb
Copy link
Contributor

Fixes the issue where file and folder dialogs would not automatically come to the foreground when opened, requiring users to manually click on them in the taskbar.

Changes

  • Modified OpenFileDialog.cs, SaveFileDialog.cs, and OpenFolderDialog.cs to use Windows.GetConsoleWindow() as the owner window handle instead of default (null)
  • This associates the dialogs with the console window, ensuring Windows brings them to the foreground automatically

@ds5678
Copy link
Member

ds5678 commented Feb 7, 2026

Does GetConsoleWindow gracefully handle the situation where there is no console window?

@misterbubb
Copy link
Contributor Author

Does GetConsoleWindow gracefully handle the situation where there is no console window?

Yes, it returns NULL if there's no console, which is the same as the original default value. So it's backward compatible.

@ds5678 ds5678 merged commit 505d4dc into AssetRipper:master Feb 7, 2026
12 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants