1
0
Fork 0
forked from len0rd/rockbox

tree: fix return to root after adding to existing playlist

When adding files to an existing playlist from
the database or file browser, Rockbox returns to
the root menu afterwards.

Appears to be a regression introduced in commit 72c539d
for the file browser. For the database, it has only
become noticeable since commit 188f025

Change-Id: Iac48fe74d20d25f083005f6ebff5abc7ee425080
This commit is contained in:
Christian Soffke 2024-07-22 01:55:07 +02:00
parent 20948c1b0e
commit 9a84e9eb34

View file

@ -1101,12 +1101,13 @@ int rockbox_browse(struct browse_context *browse)
ret_val = dirbrowse();
}
}
tc.is_browsing = false;
backup_count--;
if (backup_count >= 0)
tc = backups[backup_count];
tc.is_browsing = false;
return ret_val;
}