Krotos Modules 3
Loading...
Searching...
No Matches
PresetManagerUI.cpp
Go to the documentation of this file.
1namespace krotos
2{
3 void PresetManagerUI::alertPresetVersion(const String& pluginVersion, const String& presetVersion,
4 const String& cutoffVersion)
5 {
6 std::string message =
7 std::string("The preset you have tried to load is out-of-date") + std::string("\n\nPreset Version:\n") +
8 presetVersion.toStdString() + std::string("\n\nPresets older than:\n") + cutoffVersion.toStdString() +
9 std::string("\n\n Cannot be loaded with this plugin version:\n") + pluginVersion.toStdString();
10
11 AlertWindow::showMessageBoxAsync(AlertWindow::AlertIconType::NoIcon, "Preset Version Mismatch", message);
12 }
13
15 {
16 // inform the user here of failed preset load
17 AlertWindow::showMessageBoxAsync(
18 AlertWindow::AlertIconType::NoIcon, "Krotos Studio",
19 "Error: Aborted state load,\nincoming state failed validation.\nLoading default preset...");
20 }
21} // namespace krotos
static void alertPresetVersion(const String &pluginVersion, const String &presetVersion, const String &cutoffVersion)
Definition PresetManagerUI.cpp:3
static void alertStateValidation()
Definition PresetManagerUI.cpp:14
Definition AirAbsorptionFilter.cpp:2