mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-12-04 05:20:30 +00:00
cal: Don't pretend ConfigServer returns a StringView
This commit is contained in:
parent
3d83d70cac
commit
02c4b69f16
Notes:
sideshowbarker
2024-07-17 02:42:21 +09:00
Author: https://github.com/Hendiadyoin1 Commit: https://github.com/SerenityOS/serenity/commit/02c4b69f16 Pull-request: https://github.com/SerenityOS/serenity/pull/19356 Reviewed-by: https://github.com/alimpfard Reviewed-by: https://github.com/gmta ✅ Reviewed-by: https://github.com/krkk ✅
1 changed files with 1 additions and 1 deletions
|
@ -51,7 +51,7 @@ static ErrorOr<int> weekday_index(StringView weekday_name)
|
|||
static ErrorOr<int> default_weekday_start()
|
||||
{
|
||||
auto calendar_config = TRY(Core::ConfigFile::open_for_app("Calendar"sv));
|
||||
String default_first_day_of_week = TRY(String::from_utf8(calendar_config->read_entry("View"sv, "FirstDayOfWeek"sv, "Sunday"sv)));
|
||||
String default_first_day_of_week = TRY(String::from_deprecated_string(calendar_config->read_entry("View"sv, "FirstDayOfWeek"sv, "Sunday"sv)));
|
||||
return TRY(weekday_index(default_first_day_of_week));
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue