-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
Fixed lock button behavior and display #2661
Conversation
That's weird. Just tested on both Linux and Windows and it works perfectly. When does it happens? |
Synced my fork with upstream and fixed what was probably causing that bug. Can you confirm if it's fixed? |
Found the problem: the lock button only works when using BLUR. Working on it. |
My bad, completely forgot about being able to switch between preview/editor using double/right click. The issue should be fixed now (tested on both Linux and Windows). |
@miguelalexbt I found another bug. If you change from markdown note to a markdown note, the feature works great! But if you can it to a snippet note before changing to a markdown note, the lock button will disappear! |
Should be fixed now. Also added the following line, so that the editor can be blurred right after opening the markdown note (before this change, the user first had to click the editor and only then he could blur and go to the preview). If you prefer, I can revert it. https://github.com/BoostIO/Boostnote/blob/7f6d4acf90753fc452c5ac16a5b1f559a1b4e95d/browser/main/Detail/MarkdownNoteDetail.js#L69 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sorry for being late, LGTM 🎉 Thank you for your contribution.
Although I still need @Rokt33r to review this |
Description
Fixed the bug reported in #2121. Now, the locking state stays consistent when you change between split view and editor/preview view.
This created a new bug: after locking, changing to split view and changing back to editor/preview view, there would be no unlock icon, leaving the user "stuck" in the editor view. In order to fix that, I changed the line 22 of MarkdownEditor.js.
Finally, fixed a display bug where the lock button was still showing up in the split view.
Issue fixed
#2121
Type of changes
Checklist: