mirror of
https://github.com/WarmUpTill/SceneSwitcher.git
synced 2026-08-15 22:04:17 -05:00
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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user