Refactor skin scanning and skin folder indexing into SkinRegistry.cpp

This also adds tests.
This commit is contained in:
Birunthan Mohanathas
2013-06-16 19:14:59 +03:00
parent 6332702f75
commit 5c91ab365d
20 changed files with 565 additions and 310 deletions

View File

@ -536,11 +536,7 @@ LRESULT CALLBACK TrayWindow::WndProc(HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM
}
else if (mID >= ID_CONFIG_FIRST && mID <= ID_CONFIG_LAST)
{
std::pair<int, int> indexes = GetRainmeter().GetMeterWindowIndex(mID);
if (indexes.first != -1 && indexes.second != -1)
{
GetRainmeter().ToggleSkin(indexes.first, indexes.second);
}
GetRainmeter().ToggleSkinWithID(mID);
}
else
{