Added SkinPath, ConfigEditor, and TrayIcon to Manage/Settings dialog

Also added Help button to Manage dialog
This commit is contained in:
Brian Ferguson
2012-11-12 13:02:01 -07:00
parent 34ceeddecb
commit f52dffefb1
8 changed files with 173 additions and 15 deletions

View File

@ -333,6 +333,25 @@ void CTrayWindow::ShowUpdateNotification(const WCHAR* newVersion)
ShowNotification(TRAY_NOTIFICATION_UPDATE, GetString(ID_STR_UPDATEAVAILABLE), text.c_str());
}
void CTrayWindow::SetTrayIcon(bool state)
{
std::wstring iniFile = Rainmeter->GetIniFile();
if (state)
{
// Delete the key from Rainmeter.ini
WritePrivateProfileString(L"Rainmeter", L"TrayIcon", NULL, iniFile.c_str());
}
else
{
WritePrivateProfileString(L"Rainmeter", L"TrayIcon", L"0", iniFile.c_str());
}
CConfigParser parser;
parser.Initialize(iniFile, NULL, NULL);
ReadOptions(parser);
}
void CTrayWindow::ReadOptions(CConfigParser& parser)
{
// Clear old Settings