1
0
Fork 0
mirror of https://github.com/beefytech/Beef.git synced 2025-06-16 15:24:10 +02:00

Some changes to file dialogs of the IDE

This commit is contained in:
disarray2077 2021-08-02 23:43:28 -03:00
parent f0cca6dc40
commit ff0a5ec630

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)
{