mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-08-25 15:45:09 -07:00
Merge pull request #16608 from Chocobo1/disable
Disable performance alert
This commit is contained in:
commit
ba147d72b9
4 changed files with 15 additions and 17 deletions
18
.github/workflows/ci_macos.yaml
vendored
18
.github/workflows/ci_macos.yaml
vendored
|
@ -17,6 +17,7 @@ jobs:
|
||||||
qt_version: "6.2.0"
|
qt_version: "6.2.0"
|
||||||
|
|
||||||
env:
|
env:
|
||||||
|
boost_path: "${{ github.workspace }}/../boost"
|
||||||
openssl_root: /usr/local/opt/openssl@1.1
|
openssl_root: /usr/local/opt/openssl@1.1
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
|
@ -28,13 +29,22 @@ jobs:
|
||||||
brew update > /dev/null
|
brew update > /dev/null
|
||||||
brew install \
|
brew install \
|
||||||
cmake ninja \
|
cmake ninja \
|
||||||
boost openssl@1.1 zlib
|
openssl@1.1 zlib
|
||||||
|
|
||||||
- name: Setup ccache
|
- name: Setup ccache
|
||||||
uses: Chocobo1/setup-ccache-action@v1
|
uses: Chocobo1/setup-ccache-action@v1
|
||||||
with:
|
with:
|
||||||
update_packager_index: false
|
update_packager_index: false
|
||||||
|
|
||||||
|
- name: Install boost
|
||||||
|
run: |
|
||||||
|
curl \
|
||||||
|
-L \
|
||||||
|
-o "${{ runner.temp }}/boost.tar.bz2" \
|
||||||
|
"https://boostorg.jfrog.io/artifactory/main/release/1.77.0/source/boost_1_77_0.tar.bz2"
|
||||||
|
tar -xf "${{ runner.temp }}/boost.tar.bz2" -C "${{ github.workspace }}/.."
|
||||||
|
mv "${{ github.workspace }}/.."/boost_* "${{ env.boost_path }}"
|
||||||
|
|
||||||
- name: Install Qt
|
- name: Install Qt
|
||||||
uses: jurplel/install-qt-action@v2
|
uses: jurplel/install-qt-action@v2
|
||||||
with:
|
with:
|
||||||
|
@ -54,6 +64,7 @@ jobs:
|
||||||
-DCMAKE_BUILD_TYPE=RelWithDebInfo \
|
-DCMAKE_BUILD_TYPE=RelWithDebInfo \
|
||||||
-DCMAKE_CXX_STANDARD=17 \
|
-DCMAKE_CXX_STANDARD=17 \
|
||||||
-DCMAKE_EXPORT_COMPILE_COMMANDS=ON \
|
-DCMAKE_EXPORT_COMPILE_COMMANDS=ON \
|
||||||
|
-DBOOST_ROOT="${{ env.boost_path }}" \
|
||||||
-Ddeprecated-functions=OFF \
|
-Ddeprecated-functions=OFF \
|
||||||
-DOPENSSL_ROOT_DIR="${{ env.openssl_root }}"
|
-DOPENSSL_ROOT_DIR="${{ env.openssl_root }}"
|
||||||
cmake --build build
|
cmake --build build
|
||||||
|
@ -68,6 +79,7 @@ jobs:
|
||||||
-G "Ninja" \
|
-G "Ninja" \
|
||||||
-DCMAKE_BUILD_TYPE=RelWithDebInfo \
|
-DCMAKE_BUILD_TYPE=RelWithDebInfo \
|
||||||
-DCMAKE_EXPORT_COMPILE_COMMANDS=ON \
|
-DCMAKE_EXPORT_COMPILE_COMMANDS=ON \
|
||||||
|
-DBOOST_ROOT="${{ env.boost_path }}" \
|
||||||
-DOPENSSL_ROOT_DIR="${{ env.openssl_root }}" \
|
-DOPENSSL_ROOT_DIR="${{ env.openssl_root }}" \
|
||||||
-DVERBOSE_CONFIGURE=ON \
|
-DVERBOSE_CONFIGURE=ON \
|
||||||
-D${{ matrix.qbt_gui }}
|
-D${{ matrix.qbt_gui }}
|
||||||
|
@ -82,6 +94,7 @@ jobs:
|
||||||
-G "Ninja" \
|
-G "Ninja" \
|
||||||
-DCMAKE_BUILD_TYPE=RelWithDebInfo \
|
-DCMAKE_BUILD_TYPE=RelWithDebInfo \
|
||||||
-DCMAKE_EXPORT_COMPILE_COMMANDS=ON \
|
-DCMAKE_EXPORT_COMPILE_COMMANDS=ON \
|
||||||
|
-DBOOST_ROOT="${{ env.boost_path }}" \
|
||||||
-DOPENSSL_ROOT_DIR="${{ env.openssl_root }}" \
|
-DOPENSSL_ROOT_DIR="${{ env.openssl_root }}" \
|
||||||
-DQT6=ON \
|
-DQT6=ON \
|
||||||
-DVERBOSE_CONFIGURE=ON \
|
-DVERBOSE_CONFIGURE=ON \
|
||||||
|
@ -91,7 +104,6 @@ jobs:
|
||||||
- name: Prepare build artifacts
|
- name: Prepare build artifacts
|
||||||
run: |
|
run: |
|
||||||
mkdir upload
|
mkdir upload
|
||||||
mv build/qbittorrent*.app upload
|
|
||||||
mkdir upload/cmake
|
mkdir upload/cmake
|
||||||
cp build/compile_commands.json upload/cmake
|
cp build/compile_commands.json upload/cmake
|
||||||
mkdir upload/cmake/libtorrent
|
mkdir upload/cmake/libtorrent
|
||||||
|
@ -100,5 +112,5 @@ jobs:
|
||||||
- name: Upload build artifacts
|
- name: Upload build artifacts
|
||||||
uses: actions/upload-artifact@v2
|
uses: actions/upload-artifact@v2
|
||||||
with:
|
with:
|
||||||
name: qBittorrent-CI_macOS_${{ matrix.qbt_gui }}_libtorrent-${{ matrix.libt_version }}_Qt-${{ matrix.qt_version }}
|
name: build-info_macOS_${{ matrix.qbt_gui }}_libtorrent-${{ matrix.libt_version }}_Qt-${{ matrix.qt_version }}
|
||||||
path: upload
|
path: upload
|
||||||
|
|
|
@ -1069,7 +1069,6 @@ void Session::initializeNativeSession()
|
||||||
| lt::alert::file_progress_notification
|
| lt::alert::file_progress_notification
|
||||||
| lt::alert::ip_block_notification
|
| lt::alert::ip_block_notification
|
||||||
| lt::alert::peer_notification
|
| lt::alert::peer_notification
|
||||||
| lt::alert::performance_warning
|
|
||||||
| lt::alert::port_mapping_notification
|
| lt::alert::port_mapping_notification
|
||||||
| lt::alert::status_notification
|
| lt::alert::status_notification
|
||||||
| lt::alert::storage_notification
|
| lt::alert::storage_notification
|
||||||
|
@ -4652,9 +4651,6 @@ void Session::handleAlert(const lt::alert *a)
|
||||||
case lt::fastresume_rejected_alert::alert_type:
|
case lt::fastresume_rejected_alert::alert_type:
|
||||||
case lt::torrent_checked_alert::alert_type:
|
case lt::torrent_checked_alert::alert_type:
|
||||||
case lt::metadata_received_alert::alert_type:
|
case lt::metadata_received_alert::alert_type:
|
||||||
case lt::performance_alert::alert_type:
|
|
||||||
dispatchTorrentAlert(a);
|
|
||||||
break;
|
|
||||||
case lt::state_update_alert::alert_type:
|
case lt::state_update_alert::alert_type:
|
||||||
handleStateUpdateAlert(static_cast<const lt::state_update_alert*>(a));
|
handleStateUpdateAlert(static_cast<const lt::state_update_alert*>(a));
|
||||||
break;
|
break;
|
||||||
|
|
|
@ -1967,12 +1967,6 @@ void TorrentImpl::handleMetadataReceivedAlert(const lt::metadata_received_alert
|
||||||
m_session->handleTorrentNeedSaveResumeData(this);
|
m_session->handleTorrentNeedSaveResumeData(this);
|
||||||
}
|
}
|
||||||
|
|
||||||
void TorrentImpl::handlePerformanceAlert(const lt::performance_alert *p) const
|
|
||||||
{
|
|
||||||
LogMsg((tr("Performance alert: ") + QString::fromStdString(p->message()))
|
|
||||||
, Log::INFO);
|
|
||||||
}
|
|
||||||
|
|
||||||
void TorrentImpl::handleCategoryOptionsChanged()
|
void TorrentImpl::handleCategoryOptionsChanged()
|
||||||
{
|
{
|
||||||
if (m_useAutoTMM)
|
if (m_useAutoTMM)
|
||||||
|
@ -2040,9 +2034,6 @@ void TorrentImpl::handleAlert(const lt::alert *a)
|
||||||
case lt::torrent_checked_alert::alert_type:
|
case lt::torrent_checked_alert::alert_type:
|
||||||
handleTorrentCheckedAlert(static_cast<const lt::torrent_checked_alert*>(a));
|
handleTorrentCheckedAlert(static_cast<const lt::torrent_checked_alert*>(a));
|
||||||
break;
|
break;
|
||||||
case lt::performance_alert::alert_type:
|
|
||||||
handlePerformanceAlert(static_cast<const lt::performance_alert*>(a));
|
|
||||||
break;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -254,7 +254,6 @@ namespace BitTorrent
|
||||||
void handleFileRenamedAlert(const lt::file_renamed_alert *p);
|
void handleFileRenamedAlert(const lt::file_renamed_alert *p);
|
||||||
void handleFileRenameFailedAlert(const lt::file_rename_failed_alert *p);
|
void handleFileRenameFailedAlert(const lt::file_rename_failed_alert *p);
|
||||||
void handleMetadataReceivedAlert(const lt::metadata_received_alert *p);
|
void handleMetadataReceivedAlert(const lt::metadata_received_alert *p);
|
||||||
void handlePerformanceAlert(const lt::performance_alert *p) const;
|
|
||||||
void handleSaveResumeDataAlert(const lt::save_resume_data_alert *p);
|
void handleSaveResumeDataAlert(const lt::save_resume_data_alert *p);
|
||||||
void handleSaveResumeDataFailedAlert(const lt::save_resume_data_failed_alert *p);
|
void handleSaveResumeDataFailedAlert(const lt::save_resume_data_failed_alert *p);
|
||||||
void handleTorrentCheckedAlert(const lt::torrent_checked_alert *p);
|
void handleTorrentCheckedAlert(const lt::torrent_checked_alert *p);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue