-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Text is removed when cancelling the open dialog #4
Comments
Yeah, that's some serious bug. |
Trying to work on it... Although never used Windows forms before. It's kind of working, but not quite there. You might want to test it and see if you can make it better? I am unable to work out where the file is saved by default when no file has been opened? |
I think I've just fixed this. https://github.com/milkshakespoon/Jottey/commit/1e8e22697806ab5f00f2ee851ff940cd7c5bb73b I'll let you have a test and then I can create a pull request if you're happy with the code. I'm learning as I'm going with this, so forgive me if my code is atrocious. |
The file isn't saved when no file is opened 😳. It doesn't make sense indeed, you are unable to save your text you wrote before opening a file. |
I'm sorry, but my computer is gone for a few days for maintenance, so I'm not able to test it right now. |
Not quite sure what you're saying here. I noticed every time I restart Jottey the text file is wiped. I'm guessing because it doesn't attempt to open the last file you saved so overwrites it with no text as per the opening text box.
No worries, continue to add issues and I'll see if I can fix them. Like you mentioned in Reddit, likely nobody really has a use for this text editor, but I want a small project to learn from. |
You already set the
|
Ah yes! I understand that now. I did set the path you're right. I wanted to test what would happen. However, despite having the path set Jottey always wipes the file and displays a blank text box. I don't think we have any code handling this? |
Now we have. |
Awesome! I thought I was going to submit a pull request. But all good. |
We probably should assign each issue to a specific person to prevent confusion. |
I'm sorry. I got a bit over-enthusiastic after getting my pc back. |
Yeah we can assign these tasks if you like. Might be nice. No worries. I've created a new pull request now, awaiting your auth. |
After opening the open dialog from the file menu and clicking close the text inputted in the text box disappears because the path cannot be found.
The open dialog needs to be handled better so that the text box only changes on a successful opening.
Get-Content : Cannot bind argument to parameter 'Path' because it is an empty string. At C:\Users\adam\Documents\GitHub\Personal\Jottey\Jottey.ps1:70 char:28 $InputData = Get-Content $global:InputFile CategoryInfo : InvalidData: (:) [Get-Content], ParameterBindingValidationException FullyQualifiedErrorId : ParameterArgumentValidationErrorEmptyStringNotAllowed,Microsoft.PowerShell.Commands.GetContentCommand
The text was updated successfully, but these errors were encountered: