Added two more theme system variables.

This commit is contained in:
Leon Styhre 2022-02-09 23:10:45 +01:00
parent 59f9791efe
commit bdbc0580d2

View file

@ -1232,12 +1232,16 @@ void SystemData::loadTheme()
sysData.insert(std::pair<std::string, std::string>("system.theme", getThemeFolder())); sysData.insert(std::pair<std::string, std::string>("system.theme", getThemeFolder()));
sysData.insert(std::pair<std::string, std::string>("system.fullName", getFullName())); sysData.insert(std::pair<std::string, std::string>("system.fullName", getFullName()));
if (isCollection()) { if (isCollection()) {
sysData.insert(
std::pair<std::string, std::string>("system.name.collections", getName()));
sysData.insert( sysData.insert(
std::pair<std::string, std::string>("system.fullName.collections", getFullName())); std::pair<std::string, std::string>("system.fullName.collections", getFullName()));
sysData.insert( sysData.insert(
std::pair<std::string, std::string>("system.theme.collections", getThemeFolder())); std::pair<std::string, std::string>("system.theme.collections", getThemeFolder()));
} }
else { else {
sysData.insert(
std::pair<std::string, std::string>("system.name.noCollections", getName()));
sysData.insert(std::pair<std::string, std::string>("system.fullName.noCollections", sysData.insert(std::pair<std::string, std::string>("system.fullName.noCollections",
getFullName())); getFullName()));
sysData.insert(std::pair<std::string, std::string>("system.theme.noCollections", sysData.insert(std::pair<std::string, std::string>("system.theme.noCollections",