I expanded the "(Program)/Section 0/main" file in the content tab and selected "Save As", this causes a dialog to appear but when I click on Save" no file is created. In the logs I see the following error:
'''
Failed to save file: Index was out of range. Must be non-negative and less than the size of the collection. (Parameter 'index')
'''
I opened the src in VSStudio and traced it to the this line of code:
For some reason the CommonSaveFileDialog is throwing an exception when you attempt to access the fileDialog.FileName. I have a pull request that changes the PromptService to use the System.Windows.Forms.SaveFileDialog and System.Windows.Forms.FolderBrowserDialog and I've tested these in all of the code paths that that use them.
I expanded the "(Program)/Section 0/main" file in the content tab and selected "Save As", this causes a dialog to appear but when I click on Save" no file is created. In the logs I see the following error:
''' Failed to save file: Index was out of range. Must be non-negative and less than the size of the collection. (Parameter 'index') '''
I opened the src in VSStudio and traced it to the this line of code:
found in https://github.com/Myster-Tee/NxFileViewer/blob/master/src/NxFileViewer/Services/Prompting/PromptService.cs#L76C9-L76C44
For some reason the CommonSaveFileDialog is throwing an exception when you attempt to access the
fileDialog.FileName
. I have a pull request that changes the PromptService to use theSystem.Windows.Forms.SaveFileDialog
andSystem.Windows.Forms.FolderBrowserDialog
and I've tested these in all of the code paths that that use them.