From 848cd361e36b10351a422a0483524b4d0463c036 Mon Sep 17 00:00:00 2001 From: Kimmo Pekkola Date: Tue, 4 Aug 2009 09:35:56 +0000 Subject: [PATCH] Removed unnecessary UAC prompt when editing skins in My Documents. --- Library/MeterWindow.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Library/MeterWindow.cpp b/Library/MeterWindow.cpp index eff76b33..eba95ddb 100644 --- a/Library/MeterWindow.cpp +++ b/Library/MeterWindow.cpp @@ -2336,7 +2336,8 @@ LRESULT CMeterWindow::OnCommand(WPARAM wParam, LPARAM lParam) command += 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); }