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:
|
||||
if (HIWORD(wParam) == EN_CHANGE)
|
||||
{
|
||||
WCHAR buffer[MAX_LINE_LENGTH];
|
||||
std::wstring skinPath = (GetWindowText((HWND)lParam, buffer, MAX_LINE_LENGTH) > 0) ? buffer : Rainmeter->GetSkinPath();
|
||||
Rainmeter->SetSkinPath(skinPath);
|
||||
WCHAR buffer[MAX_PATH];
|
||||
if (GetWindowText((HWND)lParam, buffer, _countof(buffer)) > 0)
|
||||
{
|
||||
Rainmeter->SetSkinPath(buffer);
|
||||
}
|
||||
}
|
||||
break;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user