From 902715bd3e69f0711a6b7f08712d430691eb21b9 Mon Sep 17 00:00:00 2001 From: WarmUpTill Date: Sun, 3 Mar 2024 18:23:07 +0100 Subject: [PATCH] Save settings when switching to new macro This should ensure that settings are saved more frequently and less data is lost in case the plugin crashes with the settings dialog opened. --- lib/macro/macro-tab.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/macro/macro-tab.cpp b/lib/macro/macro-tab.cpp index d4407ebb..62848f26 100644 --- a/lib/macro/macro-tab.cpp +++ b/lib/macro/macro-tab.cpp @@ -13,6 +13,7 @@ #include "utility.hpp" #include "version.h" +#include #include #include #include @@ -729,6 +730,7 @@ void AdvSceneSwitcher::MacroSelectionChanged() return; } SetEditMacro(*macro); + obs_frontend_save(); } void AdvSceneSwitcher::HighlightOnChange()