This commit is contained in:
jpirnay
2026-03-23 21:22:27 +01:00
parent 251c341c06
commit d53f8caeb4
3 changed files with 3 additions and 4 deletions
-1
View File
@@ -3,7 +3,6 @@
#include <string>
#include <vector>
struct RecentBook {
std::string path;
std::string title;
@@ -20,7 +20,6 @@
#include "fontIds.h"
#include "images/Logo120.h"
namespace {
// Context passed through PNGdec's decode() user-pointer to the per-scanline draw callback.
+3 -2
View File
@@ -7,8 +7,8 @@
#include <algorithm>
#include "BookInfoActivity.h"
#include "../util/ConfirmationActivity.h"
#include "BookInfoActivity.h"
#include "MappedInputManager.h"
#include "RecentBooksStore.h"
#include "components/UITheme.h"
@@ -59,7 +59,8 @@ void RecentBooksActivity::loop() {
}
// Left button: remove selected book from recent list
if (!recentBooks.empty() && selectorIndex < recentBooks.size() && mappedInput.wasReleased(MappedInputManager::Button::Left)) {
if (!recentBooks.empty() && selectorIndex < recentBooks.size() &&
mappedInput.wasReleased(MappedInputManager::Button::Left)) {
const std::string bookPath = recentBooks[selectorIndex].path;
const std::string bookTitle = recentBooks[selectorIndex].title;