Fix for context menu to use ConfigEditor or Windows association for .ini when doing "Edit Settings"

This commit is contained in:
jsmorley 2010-06-23 18:03:55 +00:00
parent 38409f2d05
commit 53934aa6c7

View File

@ -419,7 +419,7 @@ LRESULT CALLBACK CTrayWindow::WndProc(HWND hWnd, UINT uMsg, WPARAM wParam, LPARA
std::wstring log = Rainmeter->GetLogFile(); std::wstring log = Rainmeter->GetLogFile();
if (_waccess(log.c_str(), 0) != -1) if (_waccess(log.c_str(), 0) != -1)
{ {
std::wstring command = L"Notepad.exe "; std::wstring command = Rainmeter->GetConfigEditor();
command += log; command += log;
LSExecute(tray->GetWindow(), command.c_str(), SW_SHOWNORMAL); LSExecute(tray->GetWindow(), command.c_str(), SW_SHOWNORMAL);
} }
@ -440,7 +440,7 @@ LRESULT CALLBACK CTrayWindow::WndProc(HWND hWnd, UINT uMsg, WPARAM wParam, LPARA
message += L"\nDelete it to disable Rainmeter's logging"; message += L"\nDelete it to disable Rainmeter's logging";
MessageBox(tray->GetWindow(), message.c_str(), L"Rainmeter", MB_OK | MB_ICONINFORMATION); MessageBox(tray->GetWindow(), message.c_str(), L"Rainmeter", MB_OK | MB_ICONINFORMATION);
std::wstring command = L"Notepad.exe "; std::wstring command = Rainmeter->GetConfigEditor();
command += log; command += log;
LSExecute(tray->GetWindow(), command.c_str(), SW_SHOWNORMAL); LSExecute(tray->GetWindow(), command.c_str(), SW_SHOWNORMAL);
} }