Browse Source

Automatically append .vcv and .vcvm extension to patches if the saved extension does not end with the correct extension.

tags/v2.0.0
Andrew Belt 3 years ago
parent
commit
6e9e5212e1
2 changed files with 4 additions and 3 deletions
  1. +2
    -1
      src/app/ModuleWidget.cpp
  2. +2
    -2
      src/patch.cpp

+ 2
- 1
src/app/ModuleWidget.cpp View File

@@ -957,7 +957,8 @@ void ModuleWidget::saveDialog() {
DEFER({std::free(pathC);});

std::string path = pathC;
if (system::getExtension(path) == "")
// Automatically append .vcvm extension
if (system::getExtension(path) != ".vcvm")
path += ".vcvm";

save(path);


+ 2
- 2
src/patch.cpp View File

@@ -148,9 +148,9 @@ void PatchManager::saveAsDialog() {
}
DEFER({std::free(pathC);});

// Append .vcv extension if no extension was given.
// Automatically append .vcv extension
std::string path = pathC;
if (system::getExtension(path) == "") {
if (system::getExtension(path) != ".vcv") {
path += ".vcv";
}



Loading…
Cancel
Save