fix(githubsync): handle bookerly-first label lambda anchor when patching SettingsActivity.cpp
This commit is contained in:
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user