From b4e3e7eaf7037eb9b2ba92db1b482725d15aa403 Mon Sep 17 00:00:00 2001 From: lx-s Date: Tue, 19 Dec 2023 18:57:29 +0100 Subject: [PATCH] Minor fixes. Bumped version to 2.5.0.0 --- WinMute/AboutDlg.cpp | 6 ++---- WinMute/WinMute.cpp | 8 ++------ 2 files changed, 4 insertions(+), 10 deletions(-) diff --git a/WinMute/AboutDlg.cpp b/WinMute/AboutDlg.cpp index 70ca166..babb7fd 100644 --- a/WinMute/AboutDlg.cpp +++ b/WinMute/AboutDlg.cpp @@ -187,11 +187,9 @@ static INT_PTR CALLBACK About_GeneralDlgProc(HWND hDlg, UINT msg, WPARAM, LPARAM #pragma warning(pop) const UINT_PTR ctrlId = pNmLink->hdr.idFrom; const LITEM item = pNmLink->item; - if ((ctrlId == IDC_LINK_HOMEPAGE - || ctrlId == IDC_LINK_TICKETS - || ctrlId == IDC_LINK_PROJECT) + if ((ctrlId == IDC_LINK_HOMEPAGE || ctrlId == IDC_LINK_TICKETS || ctrlId == IDC_LINK_PROJECT) && item.iLink == 0) { - ShellExecuteW(nullptr, L"open", item.szUrl, nullptr, nullptr, SW_SHOW); + LaunchBrowser(hDlg, item.szUrl); } } return TRUE; diff --git a/WinMute/WinMute.cpp b/WinMute/WinMute.cpp index 9b987e6..2ae84c6 100644 --- a/WinMute/WinMute.cpp +++ b/WinMute/WinMute.cpp @@ -640,13 +640,9 @@ LRESULT WinMute::OnUpdatePopup(HWND hWnd, WPARAM, LPARAM lParam) if (lParam == NIN_BALLOONUSERCLICK) { const bool betaUpdates = settings_.QueryValue(SettingsKey::CHECK_FOR_BETA_UPDATE) != 0; if (betaUpdates && updateInfo_.beta.shouldUpdate) { - ShellExecuteW( - hWnd, L"open", updateInfo_.beta.downloadUrl.c_str(), - nullptr, nullptr, SW_SHOW); + LaunchBrowser(hWnd, updateInfo_.beta.downloadUrl); } else if (updateInfo_.stable.shouldUpdate) { - ShellExecuteW( - hWnd, L"open", updateInfo_.stable.downloadUrl.c_str(), - nullptr, nullptr, SW_SHOW); + LaunchBrowser(hWnd, updateInfo_.stable.downloadUrl); } } if (lParam == NIN_BALLOONHIDE || lParam == NIN_BALLOONTIMEOUT || lParam == NIN_BALLOONUSERCLICK) { -- 2.43.0