Clear macros on shutdown

This was done implicitly in the shutdown handler by clearing the
plugin's settings.
Due to unwanted side effects this behavior has been disabled for the
shutdown and thus macros have to be cleared explicitly on shutdown.
This commit is contained in:
WarmUpTill 2026-04-29 16:44:48 +02:00 committed by WarmUpTill
parent 8c51b44fbb
commit 6a3de18069

View File

@ -17,6 +17,17 @@
namespace advss {
static bool setup()
{
AddPluginCleanupStep([]() {
GetTopLevelMacros().clear();
GetTemporaryMacros().clear();
});
return true;
}
static bool setupDone = setup();
Macro::Macro(const std::string &name) : _dockSettings(this)
{
SetName(name);