mirror of
https://github.com/WarmUpTill/SceneSwitcher.git
synced 2026-05-06 04:47:08 -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:
parent
8c51b44fbb
commit
6a3de18069
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user