mirror of
https://github.com/chibicitiberiu/rainmeter-studio.git
synced 2024-02-24 04:33:31 +00:00
Fix for context menu to use ConfigEditor or Windows association for .ini when doing "Edit Settings"
This commit is contained in:
parent
38409f2d05
commit
53934aa6c7
@ -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);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user