Edit Password protect bug?

So I have been working on the Object Browser and I have been using this password Edit protected file for testing. Which I created for the UI improvement of the same Edit Password UI https://gerrit.libreoffice.org/c/core/+/163924

Now, what happened is I am opening these 3 files from the restore file UI which are this 1st Password Edit protected writer file with macro and 2nd is unsaved Untitled 1 calc file with Macro and 3rd is unsaved file with no macro.

Now the first thing which I identified was the macro disabled message to the unsaved calc file which doesn’t seems correct to me as I was able to edit the macro of this file meanwhile the Edit Password Protected file showing this message is correct. I was opening the Edit Password Dialog via the shortcut Cmd+shft+M and I was consistently getting the Password Dialog.

Now today while testing https://www.youtube.com/watch?v=qCkbr8gSqdI I am now no more getting the Edit Password Protect UI if I am launching the Edit Password Dialog via the shortcut Cmd+shft+M it is just simply letting the file into the Edit Mode.

Here is the Image Link [Edit mode message for non saved Non locked macro file - Image on Pasteboard]