| 219 | |
| 220 | |
| 221 | void Manager::saveTemplateDialog() { |
| 222 | // Even if <user>/template.vcv doesn't exist, this message is still valid because it overrides the <system>/template.vcv patch. |
| 223 | if (!osdialog_message(OSDIALOG_INFO, OSDIALOG_OK_CANCEL, string::translate("patch.overwriteTemplate").c_str())) |
| 224 | return; |
| 225 | |
| 226 | try { |
| 227 | save(templatePath); |
| 228 | } |
| 229 | catch (Exception& e) { |
| 230 | std::string message = string::f(string::translate("patch.saveTemplateFailed"), e.what()); |
| 231 | osdialog_message(OSDIALOG_INFO, OSDIALOG_OK, message.c_str()); |
| 232 | return; |
| 233 | } |
| 234 | } |
| 235 | |
| 236 | |
| 237 | void Manager::saveAutosave() { |