mirror of
https://github.com/Next-Flip/Momentum-Firmware.git
synced 2026-04-25 03:29:58 -07:00
Filename or "Unsaved + CardType" is now showed for saved cards during emulation
This commit is contained in:
@@ -582,8 +582,14 @@ static void nfc_protocol_support_scene_emulate_on_enter(NfcApp* instance) {
|
||||
|
||||
} else {
|
||||
widget_add_string_element(widget, 90, 13, AlignCenter, AlignTop, FontPrimary, "Emulating");
|
||||
furi_string_set(
|
||||
temp_str, nfc_device_get_name(instance->nfc_device, NfcDeviceNameTypeFull));
|
||||
if(!furi_string_empty(instance->file_name)) {
|
||||
furi_string_set(temp_str, instance->file_name);
|
||||
} else {
|
||||
furi_string_printf(
|
||||
temp_str,
|
||||
"Unsaved\n%s",
|
||||
nfc_device_get_name(instance->nfc_device, NfcDeviceNameTypeFull));
|
||||
}
|
||||
}
|
||||
|
||||
widget_add_text_box_element(
|
||||
|
||||
Reference in New Issue
Block a user