Skip to content

Commit fc1a5a5

Browse files
authored
Merge branch 'flipperdevices:dev' into unleashed
2 parents dbd5f3c + 69d90d5 commit fc1a5a5

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

applications/nfc/nfc_device.c

+5-2
Original file line numberDiff line numberDiff line change
@@ -906,8 +906,11 @@ bool nfc_file_select(NfcDevice* dev) {
906906
furi_assert(dev);
907907

908908
// Input events and views are managed by file_browser
909+
string_t nfc_app_folder;
910+
string_init_set_str(nfc_app_folder, NFC_APP_FOLDER);
909911
bool res = dialog_file_browser_show(
910-
dev->dialogs, dev->load_path, dev->load_path, NFC_APP_EXTENSION, true, &I_Nfc_10px, true);
912+
dev->dialogs, dev->load_path, nfc_app_folder, NFC_APP_EXTENSION, true, &I_Nfc_10px, true);
913+
string_clear(nfc_app_folder);
911914
if(res) {
912915
string_t filename;
913916
string_init(filename);
@@ -935,7 +938,7 @@ void nfc_device_clear(NfcDevice* dev) {
935938
nfc_device_data_clear(&dev->dev_data);
936939
memset(&dev->dev_data, 0, sizeof(dev->dev_data));
937940
dev->format = NfcDeviceSaveFormatUid;
938-
string_set_str(dev->load_path, NFC_APP_FOLDER);
941+
string_reset(dev->load_path);
939942
}
940943

941944
bool nfc_device_delete(NfcDevice* dev, bool use_load_path) {

0 commit comments

Comments
 (0)