mirror of
https://github.com/chibicitiberiu/rainmeter-studio.git
synced 2024-02-24 04:33:31 +00:00
Removed unnecessary UAC prompt when editing skins in My Documents.
This commit is contained in:
parent
428669287a
commit
848cd361e3
@ -2336,7 +2336,8 @@ LRESULT CMeterWindow::OnCommand(WPARAM wParam, LPARAM lParam)
|
|||||||
command += L" \"";
|
command += L" \"";
|
||||||
command += m_SkinPath + L"\\" + m_SkinName + L"\\" + m_SkinIniFile + L"\"";
|
command += m_SkinPath + L"\\" + m_SkinName + L"\\" + m_SkinIniFile + L"\"";
|
||||||
|
|
||||||
if (m_SkinPath == Rainmeter->GetSkinPath())
|
// If the skins are in the program folder start the editor as admin
|
||||||
|
if (Rainmeter->GetPath() + L"Skins\\" == Rainmeter->GetSkinPath())
|
||||||
{
|
{
|
||||||
LSExecuteAsAdmin(NULL, command.c_str(), SW_SHOWNORMAL);
|
LSExecuteAsAdmin(NULL, command.c_str(), SW_SHOWNORMAL);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user