New !bang

!RainmeterRefreshApp

Does a full refresh of all skins and reloads the list of configs and Rainmeter.ini settings.  This is the same as "Refresh All" from the system tray context menu.  Is not the same as !RainmeterRefresh [config | *] as it can be used to make Rainmeter "see" a new folder added to \Skins by the user or a process.  Note: This was added mostly to better support RainBrowser when a user adds a downloaded config while using RainBrowser.
This commit is contained in:
jsmorley 2009-12-01 01:35:43 +00:00
parent 794d3c8c77
commit 15353ea701

View File

@ -1487,6 +1487,14 @@ BOOL CRainmeter::ExecuteBang(const std::wstring& bang, const std::wstring& arg,
{ {
BangWithArgs(BANG_REFRESH, arg.c_str(), 0); BangWithArgs(BANG_REFRESH, arg.c_str(), 0);
} }
else if (wcsicmp(bang.c_str(), L"!RainmeterRefreshApp") == 0)
{
// Read skins and settings
Rainmeter->ReloadSettings();
// Refresh all
RainmeterRefresh(m_TrayWindow->GetWindow(), NULL);
}
else if (wcsicmp(bang.c_str(), L"!RainmeterRedraw") == 0) else if (wcsicmp(bang.c_str(), L"!RainmeterRedraw") == 0)
{ {
BangWithArgs(BANG_REDRAW, arg.c_str(), 0); BangWithArgs(BANG_REDRAW, arg.c_str(), 0);