mirror of
https://github.com/chibicitiberiu/rainmeter-studio.git
synced 2024-02-24 04:33:31 +00:00
FileView: Fixed default icon index (off by 1) when non IconPath is specified.
This commit is contained in:
parent
178ccb0af4
commit
a96151b8f8
@ -235,7 +235,7 @@ PLUGIN_EXPORT void Reload(void* data, void* rm, double* maxValue)
|
|||||||
|
|
||||||
std::wstring temp = L"icon";
|
std::wstring temp = L"icon";
|
||||||
WCHAR buffer[MAX_PATH];
|
WCHAR buffer[MAX_PATH];
|
||||||
_itow_s(child->index, buffer, 10);
|
_itow_s(child->index + 1, buffer, 10);
|
||||||
temp += buffer;
|
temp += buffer;
|
||||||
temp += L".ico";
|
temp += L".ico";
|
||||||
child->iconPath = RmReadPath(rm, L"IconPath", temp.c_str());
|
child->iconPath = RmReadPath(rm, L"IconPath", temp.c_str());
|
||||||
|
Loading…
Reference in New Issue
Block a user