cal: Don't pretend ConfigServer returns a StringView

This commit is contained in:
Hendiadyoin1 2023-06-11 19:47:41 +02:00 committed by Jelle Raaijmakers
parent 3d83d70cac
commit 02c4b69f16
Notes: sideshowbarker 2024-07-17 02:42:21 +09:00

View file

@ -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));
}