From 361bb80c82c2e58558d3b78d7d065c02697aae13 Mon Sep 17 00:00:00 2001 From: derwin12 <4643499+derwin12@users.noreply.github.com> Date: Tue, 26 Nov 2024 20:48:44 -0500 Subject: [PATCH] Exit upload if the sd card is cancelled --- xLights/controllers/HinksPixExportDialog.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/xLights/controllers/HinksPixExportDialog.cpp b/xLights/controllers/HinksPixExportDialog.cpp index 739594def0..53cb649509 100644 --- a/xLights/controllers/HinksPixExportDialog.cpp +++ b/xLights/controllers/HinksPixExportDialog.cpp @@ -1004,6 +1004,8 @@ void HinksPixExportDialog::OnButton_ExportClick(wxCommandEvent& /*event*/) { wxDirDialog dlg(this, "Select SD Directory for " + hix->GetName(), drive, wxDD_DEFAULT_STYLE | wxDD_DIR_MUST_EXIST); if (dlg.ShowModal() == wxID_OK) { drive = dlg.GetPath(); + } else { + continue; } if (!ObtainAccessToURL(drive)) { errorMsg = wxString::Format("Could not obtain write access for '%s'", drive);