mirror of
https://github.com/chibicitiberiu/rainmeter-studio.git
synced 2024-02-24 04:33:31 +00:00
Tweaks
This commit is contained in:
parent
fd5de00955
commit
6394b447ba
@ -1799,9 +1799,11 @@ INT_PTR CDialogManage::CTabSettings::OnCommand(WPARAM wParam, LPARAM lParam)
|
|||||||
case IDC_MANAGESETTINGS_SKINPATH_TEXT:
|
case IDC_MANAGESETTINGS_SKINPATH_TEXT:
|
||||||
if (HIWORD(wParam) == EN_CHANGE)
|
if (HIWORD(wParam) == EN_CHANGE)
|
||||||
{
|
{
|
||||||
WCHAR buffer[MAX_LINE_LENGTH];
|
WCHAR buffer[MAX_PATH];
|
||||||
std::wstring skinPath = (GetWindowText((HWND)lParam, buffer, MAX_LINE_LENGTH) > 0) ? buffer : Rainmeter->GetSkinPath();
|
if (GetWindowText((HWND)lParam, buffer, _countof(buffer)) > 0)
|
||||||
Rainmeter->SetSkinPath(skinPath);
|
{
|
||||||
|
Rainmeter->SetSkinPath(buffer);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user