Updating a skin should work now even if the current version is missing. This should solve the issue 121.

The default tray icon is shown if custom tray measure cannot be created.
This commit is contained in:
Kimmo Pekkola
2009-10-30 19:10:55 +00:00
parent fd9cac7add
commit 46570b6025
3 changed files with 47 additions and 35 deletions

View File

@ -195,11 +195,7 @@ BOOL CTrayWindow::ShowBalloonHelp()
HICON CTrayWindow::CreateTrayIcon(double value)
{
if (m_Measure == NULL)
{
return LoadIcon(m_Instance, MAKEINTRESOURCE(IDI_TRAY));
}
else
if (m_Measure != NULL)
{
if (m_MeterType == TRAY_METER_TYPE_HISTOGRAM)
{
@ -290,7 +286,8 @@ HICON CTrayWindow::CreateTrayIcon(double value)
}
}
return NULL;
// Return the default icon if there is no valid measure
return LoadIcon(m_Instance, MAKEINTRESOURCE(IDI_TRAY));
}
void CTrayWindow::ReadConfig(CConfigParser& parser)