Skip to content

Commit

Permalink
fix(calendar(html)): don't cache list of week days
Browse files Browse the repository at this point in the history
Fixes #4907
  • Loading branch information
cgx committed Dec 16, 2019
1 parent 15d7c69 commit 9aeecea
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions UI/PreferencesUI/UIxPreferences.m
Original file line number Diff line number Diff line change
Expand Up @@ -498,13 +498,9 @@ - (NSArray *) hoursList

- (NSArray *) shortWeekDaysList
{
static NSArray *shortWeekDaysList = nil;
NSArray *shortWeekDaysList = nil;

if (!shortWeekDaysList)
{
shortWeekDaysList = [locale objectForKey: NSShortWeekDayNameArray];
[shortWeekDaysList retain];
}
shortWeekDaysList = [locale objectForKey: NSShortWeekDayNameArray];

return shortWeekDaysList;
}
Expand Down

0 comments on commit 9aeecea

Please sign in to comment.