Refactor hyphenation logic and update settings for hyphenation toggle

This commit is contained in:
Arthur Tazhitdinov
2026-01-03 15:50:51 +05:00
parent 3059cdbc11
commit be233917ec
6 changed files with 10 additions and 95 deletions

View File

@@ -38,7 +38,7 @@ const SettingInfo settingsList[settingsCount] = {
SettingType::ENUM,
&CrossPointSettings::paragraphAlignment,
{"Justify", "Left", "Center", "Right"}},
{"Hyphenation", SettingType::TOGGLE, &CrossPointSettings::hyphenationEnabled, {}}},
{"Hyphenation", SettingType::TOGGLE, &CrossPointSettings::hyphenationEnabled, {}},
{"Time to Sleep",
SettingType::ENUM,
&CrossPointSettings::sleepTimeout,
@@ -47,7 +47,7 @@ const SettingInfo settingsList[settingsCount] = {
SettingType::ENUM,
&CrossPointSettings::refreshFrequency,
{"1 page", "5 pages", "10 pages", "15 pages", "30 pages"}},
{"Check for updates", SettingType::ACTION, nullptr, {}};
{"Check for updates", SettingType::ACTION, nullptr, {}}};
} // namespace
void SettingsActivity::taskTrampoline(void* param) {