Skip to content
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

[Base64 Image] Click on save or view while no input made the app crashing #529

Merged
merged 1 commit into from May 18, 2022

Conversation

veler
Copy link
Collaborator

@veler veler commented May 17, 2022

Pull request type

Please check the type of change your PR introduces:

  • Bugfix
  • Feature
  • UI change (please include screenshot!)
  • Code style update (formatting, renaming)
  • Refactoring (no functional changes, no api changes)
  • Build related changes
  • Documentation content changes
  • Internationalization and localization
  • Other (please describe):

What is the current behavior?

Issue Number: #526

What is the new behavior?

The buttons are now hidden if there's no image visible.

Quality check

Before creating this PR, have you:

  • Followed the code style guideline as described in CONTRIBUTING.md
  • Verified that the change work in Release build configuration
  • Checked all unit tests pass

@veler veler linked an issue May 17, 2022 that may be closed by this pull request
@veler veler requested a review from btiteux May 17, 2022 01:39
@btiteux
Copy link
Collaborator

btiteux commented May 17, 2022

Hello,

I just tested the pull request, there is no button if no image that's good.

But I tried with a picture (around 578Kb) the picture is converted to base64, but then I can't do anything.
image

I had to wait almost two minutes to get a reaction from the tools an idea to avoid that?

@veler
Copy link
Collaborator Author

veler commented May 17, 2022

Hello,

I just tested the pull request, there is no button if no image that's good.

But I tried with a picture (around 578Kb) the picture is converted to base64, but then I can't do anything. image

I had to wait almost two minutes to get a reaction from the tools an idea to avoid that?

Yup. It's a totally unrelated issue. The problem here is the UWP TextBox. It doesn't handle well very long text that doesn't have any whitespace :'(
Best alternative I can think about is using the Monaco editor, but it sounds a bit overkill too, and not ideal at the end of the day. What do you think?

@veler
Copy link
Collaborator Author

veler commented May 17, 2022

Following private conversation => we will use Monaco editor and will address it in another PR.

@veler veler merged commit cbf688e into main May 18, 2022
@veler veler deleted the fix526 branch May 18, 2022 04:07
@veler veler mentioned this pull request May 19, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Base64 Image] Click on save or view while no input makes the app crashes
2 participants