Skip to content

Commit 434dd2f

Browse files
Make Program Updater choose the same build for download
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.
1 parent 9a9c375 commit 434dd2f

File tree

1 file changed

+13
-1
lines changed

1 file changed

+13
-1
lines changed

src/gui/programupdater.cpp

+13-1
Original file line numberDiff line numberDiff line change
@@ -97,11 +97,23 @@ void ProgramUpdater::rssDownloadFinished(const Net::DownloadResult &result)
9797
: QString {};
9898
};
9999

100+
#ifdef QBT_USES_LIBTORRENT2
101+
102+
#ifdef Q_OS_MACOS
103+
const QString OS_TYPE = u"Mac OS X (lt20)"_s;
104+
#elif defined(Q_OS_WIN)
105+
const QString OS_TYPE = u"Windows x64 (lt20)"_s;
106+
#endif // Q_OS_MACOS
107+
108+
#else // QBT_USES_LIBTORRENT2
109+
100110
#ifdef Q_OS_MACOS
101111
const QString OS_TYPE = u"Mac OS X"_s;
102112
#elif defined(Q_OS_WIN)
103113
const QString OS_TYPE = u"Windows x64"_s;
104-
#endif
114+
#endif // Q_OS_MACOS
115+
116+
#endif // QBT_USES_LIBTORRENT2
105117

106118
bool inItem = false;
107119
QString version;

0 commit comments

Comments
 (0)