[FL-2688] Fix incorrect remote renaming behaviour #1455

This commit is contained in:
Georgii Surkov 2022-07-26 14:46:14 +03:00 committed by GitHub
parent 05b816429c
commit 52a83fc929
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -307,6 +307,7 @@ bool infrared_rename_current_remote(Infrared* infrared, const char* name) {
FS_Error status = storage_common_rename(
storage, infrared_remote_get_path(remote), string_get_cstr(new_path));
infrared_remote_set_name(remote, string_get_cstr(new_name));
infrared_remote_set_path(remote, string_get_cstr(new_path));
string_clear(new_name);
string_clear(new_path);