Plugin Wizard, less destructive Part 2

Posted by AdInfinitum on Sun 14 Aug 2022 03:27 PM — 2 posts, 10,789 views.

#0
A year and a half ago, I made the following suggestion, located here:

http://gammon.com.au/forum/bbshowpost.php?bbsubject_id=14808

To recap without visiting the link, the suggestion was to make Plugin Wizard less destructive by not automatically selecting all triggers/aliases/variables because in the majority of cases, you do not want to remove ALL of them, only SOME of them.

Thank you for making that change a year and a half ago. However, it's been learned there is a bug afoot, and I'm surprised it has not been mentioned until now. If you create a new plugin via Plugin Wizard and do not select ANY of the tabs, the Plugin Wizard acts as if you had selected ALL of the components and will subsequently remove the triggers, aliases, variables, etc. Obviously not what is intended when trying to create a blank plugin (or in my case, just using script for a plugin).
USA Global Moderator #1
Hmm. I guess deselecting elements during tab initialization doesn't work if the tabs are never activated because they're loaded lazily.

We could either activate them all in a loop up front, or people say we can "set PSP_PREMATURE on each tab's dwFlags" to have it initialize in advance, though I haven't yet looked into what that entails.