Update guide

This commit is contained in:
Konstantin Vukolov 2026-01-22 18:06:44 +03:00
parent 58515d4abc
commit 2b53f12098
5 changed files with 21 additions and 22 deletions

View File

@ -131,7 +131,7 @@ The Settings screen allows you to configure the device's behavior. There are a f
- **Reader Paragraph Alignment**: Set the alignment of paragraphs; options are "Justified" (default), "Left", "Center", or "Right".
- **Time to Sleep**: Set the duration of inactivity before the device automatically goes to sleep.
- **Refresh Frequency**: Set how often the screen does a full refresh while reading to reduce ghosting.
- **Calibre Settings**: Set up integration for accessing a Calibre web library or connecting to Calibre as a wireless device.
- **Remote Library**: Set up integration for accessing an OPDS Library (like Calibre web library) or connecting to Calibre as a wireless device.
- **Check for updates**: Check for firmware updates over WiFi.
### 3.6 Sleep Screen

View File

@ -118,7 +118,6 @@ bool CrossPointSettings::loadFromFile() {
serialization::readString(inputFile, urlPath);
strncpy(opdsPath, urlPath.c_str(), sizeof(opdsPath) - 1);
opdsPath[sizeof(opdsPath) - 1] = '\0';
}
if (++settingsRead >= fileSettingsCount) break;
serialization::readPod(inputFile, textAntiAliasing);

View File

@ -5,12 +5,12 @@
#include <cstring>
#include "RemoteLibrarySettingsActivity.h"
#include "ClearCacheActivity.h"
#include "CrossPointSettings.h"
#include "KOReaderSettingsActivity.h"
#include "MappedInputManager.h"
#include "OtaUpdateActivity.h"
#include "RemoteLibrarySettingsActivity.h"
#include "fontIds.h"
void CategorySettingsActivity::taskTrampoline(void* param) {

View File

@ -97,24 +97,24 @@ void RemoteLibrarySettingsActivity::handleSelection() {
exitActivity();
updateRequired = true;
}));
} else if (selectedIndex == 1) {
// OPDS Path
exitActivity();
enterNewActivity(new KeyboardEntryActivity(
renderer, mappedInput, "OPDS Path", SETTINGS.opdsPath, 10,
127, // maxLength
false, // not password
[this](const std::string& url) {
strncpy(SETTINGS.opdsPath, url.c_str(), sizeof(SETTINGS.opdsServerUrl) - 1);
SETTINGS.opdsPath[sizeof(SETTINGS.opdsPath) - 1] = '\0';
SETTINGS.saveToFile();
exitActivity();
updateRequired = true;
},
[this]() {
exitActivity();
updateRequired = true;
}));
} else if (selectedIndex == 1) {
// OPDS Path
exitActivity();
enterNewActivity(new KeyboardEntryActivity(
renderer, mappedInput, "OPDS Path", SETTINGS.opdsPath, 10,
127, // maxLength
false, // not password
[this](const std::string& url) {
strncpy(SETTINGS.opdsPath, url.c_str(), sizeof(SETTINGS.opdsServerUrl) - 1);
SETTINGS.opdsPath[sizeof(SETTINGS.opdsPath) - 1] = '\0';
SETTINGS.saveToFile();
exitActivity();
updateRequired = true;
},
[this]() {
exitActivity();
updateRequired = true;
}));
} else if (selectedIndex == 2) {
// Wireless Device - launch the activity (handles WiFi connection internally)

View File

@ -14,7 +14,7 @@
class RemoteLibrarySettingsActivity final : public ActivityWithSubactivity {
public:
explicit RemoteLibrarySettingsActivity(GfxRenderer& renderer, MappedInputManager& mappedInput,
const std::function<void()>& onBack)
const std::function<void()>& onBack)
: ActivityWithSubactivity("RemoteLibrarySettings", renderer, mappedInput), onBack(onBack) {}
void onEnter() override;