Skip to content

Commit

Permalink
Make Program Updater choose the same build for download
Browse files Browse the repository at this point in the history
We're probably stuck offering the duo of RC_1_2 and RC_2_0 for some
time in the future. So hardcode the choices and make the Program Updater
choose the variant the user currently uses.
  • Loading branch information
sledgehammer999 committed Aug 24, 2024
1 parent 9a9c375 commit 434dd2f
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion src/gui/programupdater.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -97,11 +97,23 @@ void ProgramUpdater::rssDownloadFinished(const Net::DownloadResult &result)
: QString {};
};

#ifdef QBT_USES_LIBTORRENT2

#ifdef Q_OS_MACOS
const QString OS_TYPE = u"Mac OS X (lt20)"_s;
#elif defined(Q_OS_WIN)
const QString OS_TYPE = u"Windows x64 (lt20)"_s;
#endif // Q_OS_MACOS

#else // QBT_USES_LIBTORRENT2

#ifdef Q_OS_MACOS
const QString OS_TYPE = u"Mac OS X"_s;
#elif defined(Q_OS_WIN)
const QString OS_TYPE = u"Windows x64"_s;
#endif
#endif // Q_OS_MACOS

#endif // QBT_USES_LIBTORRENT2

bool inItem = false;
QString version;
Expand Down

0 comments on commit 434dd2f

Please sign in to comment.