fix lock bug.

This commit is contained in:
alves
2026-02-04 17:21:13 +08:00
parent 1f206dc889
commit dfb83e4a14
3 changed files with 79 additions and 9 deletions

View File

@@ -4013,7 +4013,10 @@ void MainFrame::downloadOpenProject(const std::string& fileUrl, const std::strin
// std::string filename = "test_for_download.3mf";
GenericDownloadDialog dlg(_L("downloading the model"), fileUrl, fileName, completeFilePath);
dlg.ShowModal();
auto res = dlg.ShowModal();
if (res != wxID_OK)
return;
if (completeFilePath.empty()) {
auto downloadPath = wxGetApp().app_config->get("download_path");