mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-08-21 05:43:32 -07:00
refact: Resolve coding style comments.
This commit is contained in:
parent
3c78a57d7b
commit
5d3a7da689
2 changed files with 3 additions and 3 deletions
|
@ -158,7 +158,7 @@ namespace
|
|||
void applyToTorrents(const QStringList &idList, Func func)
|
||||
requires std::invocable<Func, BitTorrent::Torrent *>
|
||||
{
|
||||
if ((idList.size() == 1) && (idList[0] == u"all" || idList[0] == u"*"))
|
||||
if ((idList.size() == 1) && ((idList[0] == u"all") || (idList[0] == u"*")))
|
||||
{
|
||||
for (BitTorrent::Torrent *const torrent : asConst(BitTorrent::Session::instance()->torrents()))
|
||||
func(torrent);
|
||||
|
|
|
@ -178,10 +178,10 @@ window.qBittorrent.PropTrackers ??= (() => {
|
|||
});
|
||||
|
||||
const addTrackerFN = () => {
|
||||
const selectedTorrents = torrentsTable.selectedRowsIds();
|
||||
if (current_hash.length === 0)
|
||||
return;
|
||||
|
||||
const selectedTorrents = torrentsTable.selectedRowsIds();
|
||||
if (selectedTorrents.length !== 0)
|
||||
current_hash = selectedTorrents.map(encodeURIComponent).join("|");
|
||||
|
||||
|
@ -231,10 +231,10 @@ window.qBittorrent.PropTrackers ??= (() => {
|
|||
};
|
||||
|
||||
const removeTrackerFN = (element) => {
|
||||
const selectedTorrents = torrentsTable.selectedRowsIds();
|
||||
if (current_hash.length === 0)
|
||||
return;
|
||||
|
||||
const selectedTorrents = torrentsTable.selectedRowsIds();
|
||||
if (selectedTorrents.length !== 0)
|
||||
current_hash = selectedTorrents.map(encodeURIComponent).join("|");
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue