60{
61 const auto response {[this](const int result) {
62 if (result) {
63 if (juce::URL("https://github.com/rsjaffe/MIDI2LR/releases")
64 .launchInDefaultBrowser()) {
65#ifndef MIDI2LR_BETA
67#endif
68 }
69 }
70#ifndef MIDI2LR_BETA
71 else {
73 }
74#endif
75 }};
76
77 try {
79 juce::NativeMessageBox::showYesNoBox(juce::AlertWindow::AlertIconType::QuestionIcon,
80 fmt::format(juce::translate("A new version of {} is available.").toStdString(),
81 "MIDI2LR"),
82 juce::translate("Do you want to download the latest version?") + ' '
84 nullptr, juce::ModalCallbackFunction::create(response));
85 }
86 catch (const std::exception& e) {
88 }
89}
void SetLastVersionFound(int version_number)
Definition SettingsManager.h:70
int new_version_
Definition VersionChecker.h:41
std::atomic< bool > thread_should_exit_
Definition VersionChecker.h:43
void ExceptionResponse(gsl::czstring id, gsl::czstring fu, const std::exception &e) noexcept