]> repos.lx-s.de Git - winmute.git/commitdiff
Minor fixes. Bumped version to 2.5.0.0
authorlx-s <lx-s@users.noreply.github.com>
Tue, 19 Dec 2023 17:57:29 +0000 (18:57 +0100)
committerlx-s <lx-s@users.noreply.github.com>
Tue, 19 Dec 2023 17:57:29 +0000 (18:57 +0100)
WinMute/AboutDlg.cpp
WinMute/WinMute.cpp

index 70ca16603cef34e46120091aa7646dd13a252f7a..babb7fd264210a5df6431e3e34c5020892aa9351 100644 (file)
@@ -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;
index 9b987e6d44b1b7a3eaab16795b40a2c110fd1f72..2ae84c6f84dde5076e71a6b18bbdff96edfcbf7a 100644 (file)
@@ -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) {