Add squeeze modules parameter, adjust view menu alike Rack
Signed-off-by: falkTX <falktx@falktx.com>
This commit is contained in:
parent
5e93775d26
commit
a0a5fa134a
7 changed files with 47 additions and 7 deletions
|
|
@ -132,9 +132,9 @@ void CardinalModuleWidget__saveDialog(ModuleWidget* const w)
|
|||
static void appendPresetItems(ui::Menu* menu, WeakPtr<ModuleWidget> moduleWidget, std::string presetDir) {
|
||||
bool foundPresets = false;
|
||||
|
||||
// Note: This is not cached, so opening this menu each time might have a bit of latency.
|
||||
if (system::isDirectory(presetDir))
|
||||
{
|
||||
// Note: This is not cached, so opening this menu each time might have a bit of latency.
|
||||
std::vector<std::string> entries = system::getEntries(presetDir);
|
||||
std::sort(entries.begin(), entries.end());
|
||||
for (std::string path : entries) {
|
||||
|
|
@ -143,7 +143,7 @@ static void appendPresetItems(ui::Menu* menu, WeakPtr<ModuleWidget> moduleWidget
|
|||
std::regex r("^\\d+_");
|
||||
name = std::regex_replace(name, r, "");
|
||||
|
||||
if (system::getExtension(path) == ".vcvm")
|
||||
if (system::getExtension(path) == ".vcvm" && name != "template")
|
||||
{
|
||||
if (!foundPresets)
|
||||
menu->addChild(new ui::MenuSeparator);
|
||||
|
|
@ -327,6 +327,11 @@ void CardinalModuleWidget::onButton(const ButtonEvent& e)
|
|||
return;
|
||||
}
|
||||
|
||||
// If module positions are locked, don't consume left-click
|
||||
if (settings::lockModules) {
|
||||
return;
|
||||
}
|
||||
|
||||
internal->dragOffset = e.pos;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue