1
0
Fork 0
mirror of https://github.com/beefytech/Beef.git synced 2025-06-10 20:42:21 +02:00

Merge pull request #1135 from disarray2077/idedialogs

Some changes to file dialogs of the IDE
This commit is contained in:
Brian Fiete 2021-08-29 06:19:46 -07:00 committed by GitHub
commit 2c7daf0376
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -851,6 +851,7 @@ namespace IDE
var fileDialog = scope OpenFileDialog();
fileDialog.Title = "Open File";
fileDialog.SetFilter("All files (*.*)|*.*");
fileDialog.Multiselect = true;
fileDialog.ValidateNames = true;
if (!fullDir.IsEmpty)
@ -1460,8 +1461,14 @@ namespace IDE
public bool SaveFileAs(SourceViewPanel sourceViewPanel)
{
#if !CLI
String fullDir = scope .();
Path.GetDirectoryPath(sourceViewPanel.mFilePath, fullDir);
SaveFileDialog dialog = scope .();
dialog.SetFilter("All files (*.*)|*.*");
//dialog.ValidateNames = true;
if (!fullDir.IsEmpty)
dialog.InitialDirectory = fullDir;
if (sourceViewPanel.mFilePath != null)
{