diff options
Diffstat (limited to 'plugins/MobileState/src/main.cpp')
-rw-r--r-- | plugins/MobileState/src/main.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/plugins/MobileState/src/main.cpp b/plugins/MobileState/src/main.cpp index 8e57f294bd..17de9672af 100644 --- a/plugins/MobileState/src/main.cpp +++ b/plugins/MobileState/src/main.cpp @@ -71,9 +71,11 @@ int ExtraIconsApply(WPARAM wParam, LPARAM lParam) if (wParam == NULL)
return 0;
- const char *icon = hasMobileClient((HANDLE) wParam, lParam) ? "mobile_icon" : NULL;
+ if (hasMobileClient((HANDLE)wParam, lParam))
+ ExtraIcon_SetIcon(hExtraIcon, (HANDLE)wParam, "mobile_icon");
+ else
+ ExtraIcon_Clear(hExtraIcon, (HANDLE)wParam);
- ExtraIcon_SetIcon(hExtraIcon, (HANDLE)wParam, icon);
return 0;
}
|