remove unused dialog

This commit is contained in:
Matt Parker
2025-09-30 22:07:23 +10:00
parent ed640b9698
commit ee06bd8497
4 changed files with 2 additions and 20 deletions

View File

@@ -21,11 +21,7 @@ public partial class SlnPicker : Control
_openSlnButton = GetNode<Button>("%OpenSlnButton");
_openSlnButton.Pressed += () => _fileDialog.PopupCentered();
var windowParent = GetParentOrNull<Window>();
_fileDialog.FileSelected += path =>
{
windowParent?.Hide();
_tcs.SetResult(path);
};
_fileDialog.FileSelected += path => _tcs.SetResult(path);
windowParent?.CloseRequested += () => _tcs.SetResult(null);
}

View File

@@ -74,6 +74,7 @@ layout_mode = 2
unique_name_in_owner = true
oversampling_override = 1.0
title = "Open a File"
dialog_hide_on_ok = true
file_mode = 0
access = 2
filters = PackedStringArray("*.sln,*.slnx;Solution Files")