Skip to content

Commit cda4499

Browse files
committed
Just some small tweaks
- These tweaks make the app work on momentum firmware
1 parent c1eecf4 commit cda4499

File tree

3 files changed

+2
-3
lines changed

3 files changed

+2
-3
lines changed

scenes/nfc_playlist_scene_emulation.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,6 @@ int32_t nfc_playlist_emulation_task(void* context) {
8888
nfc_playlist_worker_stop(nfc_playlist->nfc_playlist_worker);
8989
nfc_playlist_worker_clear_nfc_data(nfc_playlist->nfc_playlist_worker);
9090
}
91-
free(file_path);
9291
}
9392
popup_reset(nfc_playlist->popup);
9493
popup_set_header(nfc_playlist->popup, EmulationState == NfcPlaylistEmulationState_Canceled ? "Emulation stopped" : "Emulation finished", 64, 10, AlignCenter, AlignTop);

scenes/nfc_playlist_scene_name_new_file.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ void nfc_playlist_name_new_file_menu_callback(void* context) {
1111
File* file = storage_file_alloc(storage);
1212
if (storage_file_open(file, furi_string_get_cstr(file_name), FSAM_READ_WRITE, FSOM_CREATE_NEW)) {
1313
storage_file_close(file);
14-
furi_string_move(nfc_playlist->settings.file_path, file_name);
14+
furi_string_swap(nfc_playlist->settings.file_path, file_name);
1515
}
1616
storage_file_free(file);
1717
}

scenes/nfc_playlist_scene_playlist_select.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
void nfc_playlist_playlist_select_menu_callback(void* context) {
44
NfcPlaylist* nfc_playlist = context;
5-
furi_string_move(nfc_playlist->settings.file_path, nfc_playlist->file_browser_output);
5+
furi_string_swap(nfc_playlist->settings.file_path, nfc_playlist->file_browser_output);
66
furi_string_reset(nfc_playlist->file_browser_output);
77
scene_manager_previous_scene(nfc_playlist->scene_manager);
88
}

0 commit comments

Comments
 (0)