fix(githubsync): handle bookerly-first label lambda anchor when patching SettingsActivity.cpp

This commit is contained in:
Justin Oros
2026-04-22 18:16:31 -07:00
parent 60d2a80a57
commit b5e96d7ead
+2
View File
@@ -219,6 +219,8 @@ def patch_settings_cpp(repo_dir):
for first_key_line in [
' if (s.key && std::string(s.key) == "darkModeState") return "Dark Mode";\n',
' if (s.key && std::string(s.key) == "smallerFontsMode") return "Smaller Fonts";\n',
' if (s.type == SettingType::ACTION && s.action == SettingAction::BookerlyInstalled) return "Bookerly Plugin";\n',
' return std::string(I18N.get(settings[index].nameId));\n',
]:
if first_key_line in content:
content = content.replace(