| 382 | |
| 383 | |
| 384 | void Manager::loadAction(std::string path) { |
| 385 | try { |
| 386 | load(path); |
| 387 | } |
| 388 | catch (Exception& e) { |
| 389 | std::string message = string::f(string::translate("patch.loadFailed"), e.what()); |
| 390 | osdialog_message(OSDIALOG_WARNING, OSDIALOG_OK, message.c_str()); |
| 391 | return; |
| 392 | } |
| 393 | |
| 394 | this->path = path; |
| 395 | APP->history->setSaved(); |
| 396 | pushRecentPath(path); |
| 397 | } |
| 398 | |
| 399 | |
| 400 | void Manager::loadDialog() { |