A2 UI
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
@@ -119,6 +119,7 @@ namespace pipedal
|
||||
using NetworkChangedListener = std::function<void(void)>;
|
||||
|
||||
private:
|
||||
bool updaterEnabled = true;
|
||||
PedalboardItem *GetPedalboardItemForFileProperty(const UiFileProperty &fileProperty);
|
||||
|
||||
// Tone3000Downloader::Listener implementation
|
||||
@@ -296,7 +297,7 @@ namespace pipedal
|
||||
Decrease
|
||||
};
|
||||
|
||||
|
||||
void EnableUpdater(bool enable);
|
||||
|
||||
Storage &GetStorage() { return storage; }
|
||||
|
||||
|
||||
@@ -132,7 +132,9 @@ void profilePlugin(const ProfileOptions &profileOptions)
|
||||
throw std::runtime_error(s.str());
|
||||
}
|
||||
|
||||
model.EnableUpdater(false);
|
||||
model.Init(configuration);
|
||||
model.GetPluginHost().asIHost()->SetMaxAudioBufferSize(64);
|
||||
|
||||
model.LoadLv2PluginInfo();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user