mirror of
https://github.com/chibicitiberiu/rainmeter-studio.git
synced 2024-02-24 04:33:31 +00:00
Code cleanup.
This commit is contained in:
parent
9823f16482
commit
d5083961af
@ -1341,7 +1341,7 @@ void CDialogManage::CTabThemes::Update()
|
|||||||
|
|
||||||
// Replace Rainmeter.ini with theme
|
// Replace Rainmeter.ini with theme
|
||||||
std::wstring theme = Rainmeter->GetSettingsPath() + L"Themes\\";
|
std::wstring theme = Rainmeter->GetSettingsPath() + L"Themes\\";
|
||||||
theme += themes[sel].c_str();
|
theme += themes[sel];
|
||||||
std::wstring wallpaper = theme + L"\\RainThemes.bmp";
|
std::wstring wallpaper = theme + L"\\RainThemes.bmp";
|
||||||
theme += L"\\Rainmeter.thm";
|
theme += L"\\Rainmeter.thm";
|
||||||
CSystem::CopyFiles(theme, Rainmeter->GetIniFile());
|
CSystem::CopyFiles(theme, Rainmeter->GetIniFile());
|
||||||
@ -1609,7 +1609,7 @@ INT_PTR CDialogManage::CTabThemes::OnCommand(WPARAM wParam, LPARAM lParam)
|
|||||||
std::wstring command = Rainmeter->GetConfigEditor() + L" \"";
|
std::wstring command = Rainmeter->GetConfigEditor() + L" \"";
|
||||||
command += Rainmeter->GetSettingsPath();
|
command += Rainmeter->GetSettingsPath();
|
||||||
command += L"Themes\\";
|
command += L"Themes\\";
|
||||||
command += themes[sel].c_str();
|
command += themes[sel];
|
||||||
command += L"\\Rainmeter.thm\"";
|
command += L"\\Rainmeter.thm\"";
|
||||||
LSExecute(NULL, command.c_str(), SW_SHOWNORMAL);
|
LSExecute(NULL, command.c_str(), SW_SHOWNORMAL);
|
||||||
}
|
}
|
||||||
@ -1630,7 +1630,7 @@ INT_PTR CDialogManage::CTabThemes::OnCommand(WPARAM wParam, LPARAM lParam)
|
|||||||
}
|
}
|
||||||
|
|
||||||
std::wstring folder = Rainmeter->GetSettingsPath() + L"Themes\\";
|
std::wstring folder = Rainmeter->GetSettingsPath() + L"Themes\\";
|
||||||
folder += themes[sel].c_str();
|
folder += themes[sel];
|
||||||
|
|
||||||
if (CSystem::RemoveFolder(folder))
|
if (CSystem::RemoveFolder(folder))
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user