Skip to content

Commit

Permalink
Exit upload if the sd card is cancelled
Browse files Browse the repository at this point in the history
  • Loading branch information
derwin12 authored and dkulp committed Dec 31, 2024
1 parent f9f0982 commit 361bb80
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions xLights/controllers/HinksPixExportDialog.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 361bb80

Please sign in to comment.