更新 'src/GUI/SetupRootDialog.cxx'

This commit is contained in:
zhongjin 2022-12-03 14:28:18 +08:00
parent 99852ed4f5
commit 31e2ba9d90

View File

@ -221,7 +221,9 @@ void SetupRootDialog::onBrowse()
void SetupRootDialog::onDownload()
{
QString templateUrl = "https://sourceforge.net/projects/flightgear/files/release-%1/FlightGear-%2-data.txz";
//QString templateUrl = "https://sourceforge.net/projects/flightgear/files/release-%1/FlightGear-%2-data.txz";
//zhongjin fgdata 下载
QString templateUrl = "https://git-x.kongjian.xin/FGFS-4.1/fgdata/archive/next.tar.gz";
QString majorMinorVersion = QString("%1.%2").arg(FLIGHTGEAR_MAJOR_VERSION).arg(FLIGHTGEAR_MINOR_VERSION);
QUrl downloadUrl(templateUrl.arg(majorMinorVersion).arg(VERSION));
QDesktopServices::openUrl(downloadUrl);