Skip to content

Commit 6baf7cf

Browse files
authored
Fix: Fixed an issue where "Custom" wasn't localized in the settings appearance page (#15312)
1 parent 7ece30a commit 6baf7cf

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Files.App/ViewModels/Settings/AppearanceViewModel.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -125,13 +125,13 @@ private void UpdateSelectedResource()
125125
if (!AppThemeResources.Any(p => p.BackgroundColor == themeBackgroundColor))
126126
{
127127
// Remove current value before adding a new one
128-
if (AppThemeResources.Last().Name == "Custom")
128+
if (AppThemeResources.Last().Name == "Custom".GetLocalizedResource())
129129
AppThemeResources.Remove(AppThemeResources.Last());
130130

131131
var appThemeBackgroundColor = new AppThemeResourceItem
132132
{
133133
BackgroundColor = themeBackgroundColor,
134-
Name = "Custom"
134+
Name = "Custom".GetLocalizedResource(),
135135
};
136136

137137
AppThemeResources.Add(appThemeBackgroundColor);

0 commit comments

Comments
 (0)