[AboutDialog]

- Fixed the issue that the statistics are updated many times if many active skins are working. "Log" is now updated once every 1 second. Config is now updated once on its Update=.
- Fixed the issue that the statistics show by incorrect order in some conditions.
- Fixed the issue that the entries aren't updated if the skin is activated/deactivated.
This commit is contained in:
spx
2010-08-30 22:51:58 +00:00
parent c753f0cbac
commit c14cd5491b
4 changed files with 244 additions and 127 deletions

View File

@ -1910,6 +1910,8 @@ void CRainmeter::CreateMeterWindow(std::wstring path, std::wstring config, std::
{
m_Meters[config] = mw;
mw->Initialize(*this);
UpdateAboutDialog();
}
}
@ -1929,6 +1931,8 @@ void CRainmeter::ClearDeleteLaterList()
if ((*iter).second == meterWindow)
{
m_Meters.erase(iter);
UpdateAboutDialog();
break;
}
}
@ -1961,6 +1965,8 @@ bool CRainmeter::DeleteMeterWindow(CMeterWindow* meterWindow, bool bLater)
{
m_Meters.erase(iter);
delete meterWindow;
UpdateAboutDialog();
return true;
}
}
@ -1969,6 +1975,8 @@ bool CRainmeter::DeleteMeterWindow(CMeterWindow* meterWindow, bool bLater)
{
m_Meters.clear();
}
UpdateAboutDialog();
}
return false;