Manager/CMake: More thoroughly disable the update checker when no build number is present

This commit is contained in:
Alexander Babikov
2025-07-30 23:50:48 +05:00
parent 8915fa9263
commit 37481032ed
4 changed files with 25 additions and 13 deletions

View File

@@ -19,7 +19,9 @@
#include "qt_vmmanager_main.hpp"
#include "qt_vmmanager_preferences.hpp"
#include "ui_qt_vmmanager_mainwindow.h"
#include "qt_updatecheckdialog.hpp"
#if EMU_BUILD_NUM != 0
# include "qt_updatecheckdialog.hpp"
#endif
#include <QLineEdit>
#include <QStringListModel>
@@ -171,16 +173,18 @@ VMManagerMainWindow::setStatusRight(const QString &text) const
statusRight->setText(text);
}
#if EMU_BUILD_NUM != 0
void
VMManagerMainWindow::checkForUpdatesTriggered()
{
auto updateChannel = UpdateCheck::UpdateChannel::CI;
#ifdef RELEASE_BUILD
# ifdef RELEASE_BUILD
updateChannel = UpdateCheck::UpdateChannel::Stable;
#endif
# endif
const auto updateCheck = new UpdateCheckDialog(updateChannel);
updateCheck->exec();
}
#endif
void VMManagerMainWindow::on_actionExit_triggered()
{