You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Implement handling of both new and old install method at the same time
This PR does the following:
- Creates two versions of the command handler (both inherits a base class where the implementation is).
- Uses a memory mapped file along with a mutex to communicate between the two, to have a shared counter.
- The counter value is used inside the classic version of the handler to determine if it should be shown or not.
By doing this, we can register both the new MSIX and the old registry on Windows 11, and ensure the following:
- If the MSIX registered entry is shown inside the classic menu, the old registry based one hides itself.
- If for some reason the MSIX registered entry doesn't show up inside the classic menu, the old registry based on shows itself.
From a users point of view - it "just works", and they always only see one entry in the old menu.
Fixnotepad-plus-plus/notepad-plus-plus#13399Close#20
0 commit comments