add save as in menu in TextEditor#277
Conversation
rename saveText to saveAsText() add new save() without confirmation Signed-off-by: Jan Guegel <jan@guegel.eu>
Signed-off-by: Jan Guegel <jan@guegel.eu>
|
Bug-ish: It still displays a confirmation dialog when pressing back without saving and then pressing Save on the unsaved changes dialog. |
getFilePath to updateFilePath menuItem SaveAs never displayed with icon backButtonPressed now uses Save without confirmation Signed-off-by: Jan Guegel <jan@guegel.eu>
|
fixed the back button issue and applied your code review feedback. |
naveensingh
left a comment
There was a problem hiding this comment.
hopefully the quality is getting better
Yeah, if you keep at it, you'll put me out of a job in a year or two.
|
@naveensingh i am thinking about this, am i on the right track? it looks like intent.data?.scheme == "content" is always true... |
Signed-off-by: Jan Guegel <jan@guegel.eu>
|
I can't find a proper solution and not sure how to test it, therefore i go with filePath.isEmpty() for now |
naveensingh
left a comment
There was a problem hiding this comment.
I'll fix it later, thanks.
Type of change(s)
What changed and why
Unsure about:
Suggested idea, change order to:
Tests performed
Before & after preview
Closes the following issue(s)
Checklist
CHANGELOG.md(if applicable).