mirror of
https://github.com/chibicitiberiu/rainmeter-studio.git
synced 2024-02-24 04:33:31 +00:00
Manage: Fix crash when loading a skin in some cases
This commit is contained in:
parent
af8befd22b
commit
ad59b70768
@ -1053,7 +1053,9 @@ INT_PTR CDialogManage::CTabSkins::OnCommand(WPARAM wParam, LPARAM lParam)
|
|||||||
std::pair<int, int> indexes = Rainmeter->GetMeterWindowIndex(m_SkinFolderPath, m_SkinFileName);
|
std::pair<int, int> indexes = Rainmeter->GetMeterWindowIndex(m_SkinFolderPath, m_SkinFileName);
|
||||||
if (indexes.first != -1 && indexes.second != -1)
|
if (indexes.first != -1 && indexes.second != -1)
|
||||||
{
|
{
|
||||||
|
m_HandleCommands = false;
|
||||||
Rainmeter->ActivateSkin(indexes.first, indexes.second);
|
Rainmeter->ActivateSkin(indexes.first, indexes.second);
|
||||||
|
m_HandleCommands = true;
|
||||||
|
|
||||||
// Fake selection change to update controls
|
// Fake selection change to update controls
|
||||||
NMHDR nm;
|
NMHDR nm;
|
||||||
|
Loading…
Reference in New Issue
Block a user