mirror of
https://github.com/chibicitiberiu/rainmeter-studio.git
synced 2024-02-24 04:33:31 +00:00
About Skins: Fixed that @ is displayed and changed variables to lowercase
This commit is contained in:
parent
7cee196f11
commit
fdf73197d4
@ -784,8 +784,18 @@ void CDialogAbout::CTabSkins::UpdateMeasureList(CMeterWindow* meterWindow)
|
|||||||
const auto& variables = m_SkinWindow->GetParser().GetVariables();
|
const auto& variables = m_SkinWindow->GetParser().GetVariables();
|
||||||
for (auto iter = variables.cbegin(); iter != variables.cend(); ++iter)
|
for (auto iter = variables.cbegin(); iter != variables.cend(); ++iter)
|
||||||
{
|
{
|
||||||
lvi.pszText = (WCHAR*)(*iter).first.c_str();
|
const WCHAR* name = (*iter).first.c_str();
|
||||||
lvi.lParam = (LPARAM)lvi.pszText;
|
lvi.lParam = (LPARAM)name;
|
||||||
|
|
||||||
|
if (wcscmp(name, L"@") == 0)
|
||||||
|
{
|
||||||
|
// Ignore reserved variables
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
|
||||||
|
std::wstring tmpStr = (*iter).first;
|
||||||
|
wcslwr(&tmpStr[0]);
|
||||||
|
lvi.pszText = (WCHAR*)tmpStr.c_str();
|
||||||
|
|
||||||
if (lvi.iItem < count)
|
if (lvi.iItem < count)
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user