mirror of
https://github.com/RetroDECK/ES-DE.git
synced 2024-11-22 14:15:38 +00:00
The displayRelative property can now be overridden for the md_lastplayed metadata type.
This commit is contained in:
parent
69c1a1259d
commit
6572fa8f23
|
@ -117,9 +117,6 @@ void DateTimeComponent::applyTheme(const std::shared_ptr<ThemeData>& theme,
|
|||
if (!elem)
|
||||
return;
|
||||
|
||||
if (elem->has("displayRelative"))
|
||||
setDisplayRelative(elem->get<bool>("displayRelative"));
|
||||
|
||||
if (elem->has("format"))
|
||||
setFormat(elem->get<std::string>("format"));
|
||||
|
||||
|
@ -178,6 +175,12 @@ void DateTimeComponent::applyTheme(const std::shared_ptr<ThemeData>& theme,
|
|||
if (properties & METADATA && elem->has("metadata"))
|
||||
setMetadataField(elem->get<std::string>("metadata"));
|
||||
|
||||
if (mMetadataField == "md_lastplayed")
|
||||
setDisplayRelative(true);
|
||||
|
||||
if (elem->has("displayRelative"))
|
||||
setDisplayRelative(elem->get<bool>("displayRelative"));
|
||||
|
||||
if (properties & LETTER_CASE && elem->has("letterCase")) {
|
||||
std::string letterCase {elem->get<std::string>("letterCase")};
|
||||
if (letterCase == "uppercase") {
|
||||
|
|
Loading…
Reference in a new issue