icsharpcode/AvaloniaILSpy

Save Code context menu option does not save the solution if a filename is selected

GatoCreador887 opened this issue · 0 comments

The "Save Code" context menu option does not actually save any code. This is caused by:

string filename = await dlg.ShowAsync(MainWindow.Instance);
if (filename != null)
{
return null;
}

Thus, if the user selects a filename to save the solution under, this code simply returns null, as if the user had cancelled the saving. If the user does indeed cancel the saving, this goes on to attempt what it should be doing when the user selects a filename. Thus, I suggest this check be changed to filename == null rather than filename != null.