This commit is contained in:
Robin E.R. Davies
2026-05-20 09:30:55 -04:00
parent 7343ced278
commit 5ee86c519f
7 changed files with 42 additions and 25 deletions
+9 -1
View File
@@ -80,7 +80,6 @@ PiPedalModel::PiPedalModel()
atomConverter(pluginHost.GetMapFeature())
{
this->updater = Updater::Create();
this->updater->Start();
this->currentUpdateStatus = updater->GetCurrentStatus();
this->pedalboard = Pedalboard::MakeDefault();
@@ -211,6 +210,10 @@ PiPedalModel::~PiPedalModel()
void PiPedalModel::Init(const PiPedalConfiguration &configuration)
{
std::lock_guard<std::recursive_mutex> lock(mutex); // prevent callbacks while we're initializing.
if (updaterEnabled)
{
this->updater->Start();
}
this->configuration = configuration;
pluginHost.SetConfiguration(configuration);
@@ -3452,3 +3455,8 @@ std::string PiPedalModel::Tone3000ThumbnailDirectory()
}
void PiPedalModel::EnableUpdater(bool enable)
{
this->updaterEnabled = enable;
}