Skip to content

Commit

Permalink
Fixed update check
Browse files Browse the repository at this point in the history
  • Loading branch information
lx-s committed Feb 6, 2024
1 parent 2ff4c08 commit 298f5a5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions WinMute/WinMute.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -426,10 +426,10 @@ void WinMute::CheckForUpdatesAsync(std::unique_ptr<UpdateChecker> updateChecker)
std::make_wformat_args(updateInfo_.currentVersion));
updateTray_.Show();
updateTray_.ShowPopup(popupTitle, popupText);
} else if (updateInfo_.beta.shouldUpdate) {
} else if (updateInfo_.stable.shouldUpdate) {
const std::wstring popupTitle = std::vformat(
i18n_.GetTranslationW("popup.update-available.title"),
std::make_wformat_args(updateInfo_.beta.version));
std::make_wformat_args(updateInfo_.stable.version));
const std::wstring popupText = std::vformat(
i18n_.GetTranslationW("popup.update-available.text"),
std::make_wformat_args(updateInfo_.currentVersion));
Expand Down

0 comments on commit 298f5a5

Please sign in to comment.