Skip to content

Commit

Permalink
Fix empty i18nId in settings
Browse files Browse the repository at this point in the history
  • Loading branch information
Ahrotahn committed Sep 3, 2024
1 parent 14a08c5 commit cfc45f2
Showing 1 changed file with 13 additions and 5 deletions.
18 changes: 13 additions & 5 deletions patches/extra/ungoogled-chromium/remove-uneeded-ui.patch
Original file line number Diff line number Diff line change
Expand Up @@ -204,15 +204,23 @@
<div class="separator"></div>
--- a/chrome/browser/resources/settings/appearance_page/appearance_page.ts
+++ b/chrome/browser/resources/settings/appearance_page/appearance_page.ts
@@ -527,7 +527,7 @@ export class SettingsAppearancePageEleme
this.themeSublabel_ = '';
return;
@@ -521,15 +521,11 @@ export class SettingsAppearancePageEleme
i18nId = 'classicTheme';
break;
}
+ this.themeSublabel_ = this.i18n(i18nId);
// </if>
// <if expr="not is_linux">
- if (this.toolbarPinningEnabled_) {
this.themeSublabel_ = '';
- return;
- }
- i18nId = 'chooseFromWebStore';
+ i18nId = '';
// </if>
this.themeSublabel_ = this.i18n(i18nId);
- this.themeSublabel_ = this.i18n(i18nId);
}

/** @return Whether applied theme is set by policy. */
--- a/chrome/browser/resources/settings/autofill_page/payments_section.html
+++ b/chrome/browser/resources/settings/autofill_page/payments_section.html
@@ -80,11 +80,6 @@
Expand Down

0 comments on commit cfc45f2

Please sign in to comment.