Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/gornek/nfc_refactoring_v1' into …
Browse files Browse the repository at this point in the history
…gsurkov/3594_nfc_refactoring_docs
  • Loading branch information
gsurkov committed Oct 16, 2023
2 parents d0099d7 + b58e7ab commit 72b2cbb
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions applications/main/nfc/nfc_app.c
Original file line number Diff line number Diff line change
Expand Up @@ -370,6 +370,11 @@ bool nfc_delete(NfcApp* instance) {
nfc_delete_shadow_file(instance);
}

if(furi_string_end_with_str(instance->file_path, NFC_APP_SHADOW_EXTENSION)) {
size_t path_len = furi_string_size(instance->file_path);
furi_string_replace_at(instance->file_path, path_len - 4, 4, NFC_APP_EXTENSION);
}

return storage_simply_remove(instance->storage, furi_string_get_cstr(instance->file_path));
}

Expand Down

0 comments on commit 72b2cbb

Please sign in to comment.