diff --git a/plugins/bookerly/patch.py b/plugins/bookerly/patch.py index 629c059..c18b973 100644 --- a/plugins/bookerly/patch.py +++ b/plugins/bookerly/patch.py @@ -277,7 +277,7 @@ def patch_settings_activity_cpp(repo_dir): path = find_first("SettingsActivity.cpp", repo_dir) content = read_file(path) - if '"Bookerly Plugin"' in content: + if '"Bookerly Font"' in content: print(" SettingsActivity.cpp already patched, skipping.") return @@ -295,13 +295,13 @@ def patch_settings_activity_cpp(repo_dir): ' ));\n' ) - if '"Bookerly Plugin"' not in content: + if '"Bookerly Font"' not in content: content = content.replace( ' [&settings](int index) { return std::string(I18N.get(settings[index].nameId)); }, nullptr, nullptr,', ' [&settings, this](int index) -> std::string {\n' ' if (selectedCategoryIndex == 4) {\n' ' const auto& s = settings[index];\n' - ' if (s.type == SettingType::ACTION && s.action == SettingAction::BookerlyInstalled) return "Bookerly Plugin";\n' + ' if (s.type == SettingType::ACTION && s.action == SettingAction::BookerlyInstalled) return "Bookerly Font";\n' ' }\n' ' return std::string(I18N.get(settings[index].nameId));\n' ' }, nullptr, nullptr,' diff --git a/plugins/githubsync/patch.py b/plugins/githubsync/patch.py index 95d5f59..9b510e0 100644 --- a/plugins/githubsync/patch.py +++ b/plugins/githubsync/patch.py @@ -219,7 +219,7 @@ 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', + ' if (s.type == SettingType::ACTION && s.action == SettingAction::BookerlyInstalled) return "Bookerly Font";\n', ' return std::string(I18N.get(settings[index].nameId));\n', ]: if first_key_line in content: diff --git a/plugins/hardcover/patch.py b/plugins/hardcover/patch.py index e279193..b29755d 100644 --- a/plugins/hardcover/patch.py +++ b/plugins/hardcover/patch.py @@ -293,7 +293,7 @@ def patch_settings_cpp(repo_dir): ' if (s.key && std::string(s.key) == "smallerFontsMode") return "Smaller Fonts";\n', ' if (s.key && std::string(s.key) == "darkModeState") return "Dark Mode";\n', ' s.action == SettingAction::GitHubSync) return "GitHub Sync";\n', - ' s.action == SettingAction::BookerlyInstalled) return "Bookerly Plugin";\n', + ' s.action == SettingAction::BookerlyInstalled) return "Bookerly Font";\n', ]: for cl in [closing, closing_bookerly]: anchor = last_key_line + cl