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

Add a password replacing button to EditWindow (issue #84) #122

Merged
merged 1 commit into from Apr 10, 2023

Conversation

scerzh
Copy link

@scerzh scerzh commented Apr 6, 2023

The 3rd approach from #84

I tried
var index = content.IndexOf(Environment.NewLine, System.StringComparison.Ordinal);
but that always returned -1. I switched to the following
var index = content.IndexOf('\n');

@scerzh scerzh force-pushed the feat/edit-window-replace-button branch from 611ce64 to 369d17a Compare April 6, 2023 13:35
@scerzh
Copy link
Author

scerzh commented Apr 6, 2023

The line endings transformed to '\n' before locating the password line. Actually for the case when Environment.NewLine is '\r'.

@geluk
Copy link
Owner

geluk commented Apr 9, 2023

Looks good to me, although I think putting the button next to the 'generate' button will help communicate its purpose a bit more. That might require raising the minimum size of the window itself a bit, but that's not an issue.

@scerzh scerzh force-pushed the feat/edit-window-replace-button branch from 369d17a to 348d460 Compare April 10, 2023 07:10
@scerzh
Copy link
Author

scerzh commented Apr 10, 2023

Yes, I agree putting the button next to the 'generate' button helps to see its purpose more clearly. I moved the button there.

I'm having issues with building on the current master.

@scerzh scerzh force-pushed the feat/edit-window-replace-button branch from 348d460 to 503980f Compare April 10, 2023 08:41
@scerzh scerzh force-pushed the feat/edit-window-replace-button branch 2 times, most recently from 14c83b8 to 9f3558a Compare April 10, 2023 12:00
@scerzh scerzh force-pushed the feat/edit-window-replace-button branch from 9f3558a to d847fc7 Compare April 10, 2023 16:53
@geluk
Copy link
Owner

geluk commented Apr 10, 2023

Yes, I think this way is perfect. Thanks!

@geluk geluk merged commit fbf1c8b into geluk:master Apr 10, 2023
2 checks passed
@scerzh scerzh deleted the feat/edit-window-replace-button branch April 11, 2023 07:50
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.

None yet

2 participants