Review comments

This commit is contained in:
jpirnay
2026-04-17 20:59:49 +02:00
parent d39246ee70
commit e74e52b23a
5 changed files with 51 additions and 17 deletions
+8 -2
View File
@@ -260,8 +260,11 @@ void ActivityManager::goToRecentBooks(int focusIndex) {
replaceActivity(std::make_unique<RecentBooksActivity>(renderer, mappedInput, focusIndex));
}
void ActivityManager::goToGlobalBookmarks() {
replaceActivity(std::make_unique<GlobalBookmarksActivity>(renderer, mappedInput));
void ActivityManager::goToGlobalBookmarks() { goToGlobalBookmarks({}); }
void ActivityManager::goToGlobalBookmarks(ReturnHint hint) {
hasReturnHint = false;
replaceActivity(std::make_unique<GlobalBookmarksActivity>(renderer, mappedInput, std::move(hint)));
}
void ActivityManager::goToBrowser() {
@@ -319,6 +322,9 @@ void ActivityManager::returnFromChild() {
case ReturnTo::RecentBooks:
goToRecentBooks(hint.selectIndex);
break;
case ReturnTo::GlobalBookmarks:
goToGlobalBookmarks(std::move(hint));
break;
case ReturnTo::Home:
default:
goHome(std::move(hint.selectName), hint.selectIndex);