fix(githubsync): handle bookerly-first label lambda anchor when patching SettingsActivity.cpp
This commit is contained in:
1 parent
60d2a80a57
commit
b5e96d7ead
1 file changed
+2
@@ -219,6 +219,8 @@ def patch_settings_cpp(repo_dir):
|
|||||||
for first_key_line in [
|
for first_key_line in [
|
||||||
' if (s.key && std::string(s.key) == "darkModeState") return "Dark Mode";\n',
|
' 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.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:
|
if first_key_line in content:
|
||||||
content = content.replace(
|
content = content.replace(
|
||||||
|
|||||||
Reference in new issue
Block a user