Make file dialog API usages read-only (#37779)

Requires 4e7de2f272

Fixes #37762
This commit is contained in:
Pieter-Jan Briers
2025-09-29 17:51:09 +02:00
committed by GitHub
parent 21a29212ab
commit 52430df55f
3 changed files with 3 additions and 3 deletions

View File

@@ -40,7 +40,7 @@ public sealed class FaxBoundUi : BoundUserInterface
_dialogIsOpen = true;
var filters = new FileDialogFilters(new FileDialogFilters.Group("txt"));
await using var file = await _fileDialogManager.OpenFile(filters);
await using var file = await _fileDialogManager.OpenFile(filters, FileAccess.Read);
_dialogIsOpen = false;
if (_window == null || _window.Disposed || file == null)