The good news is that I can confirm this in 3.8, but not in trunk.
It turns out that it does not depend on the version, but is the result of the project option "
Use manifest resource (and enable themes)" (on the very first page of the settings). Try toggling it on/off, and when saving the settings you will see how it is added/removed in the code.
The fact that this line appears automatically at startup indicates that you once used the "
Set compiler options as default" checkbox (in the corner of the project options window) to save default options for new projects. Despite the name, this checkbox saves not only compiler options, but some others as well.
Unfortunately, the same options template is used for all project types. Therefore, if you uncheck this default checkbox, it will be unchecked in all new graphical projects (and it is usually needed there). There is a separate
issue #38106 about this.
So, at the moment I can offer options:
1. "Tolerate" this problem if you have a lot of custom options.
2. Delete the options template, returning to the default options for each project type. It is located in the "
projectoptions.xml" file in the user configuration (you can just rename it).
3. Alternatively, you can use the "
ProjTemplates" package. Its configuration is much more complicated, but it allows you to prepare not only options, but also any project template files.
To be clear, fixing #38106 won't help if you still want to mark this option for console projects. So please create a new issue on the bug tracker. I can suggest a possible solution there.