Can't use Notepad++ as default program for .txt
I was able to recreate this issue with Notepad++ on Windows 10 Pro where Notepad++ would not stay the default. I was able to resolve it by:
Open Notepad++
On the menu bar, navigate to Settings > Preferences > File Association
In "Supported extensions", click "Notepad" and in the next panel to the right, you should see the .txt and .log extensions.
Click the .txt extension, then click the "->" right arrow to move .txt to "Registered Extensions", then you can close the Preferences window
Use File Manager and navigate to a directory with a .txt file in it.
Right-click the .txt file and select "Properties"
On the part that says "Opens with:", click the "Change" button, and select Notepad++
When you click OK, Notepad++ should now stay the default app for .txt files.