Commit Graph

16722 Commits

Author SHA1 Message Date
Yat Ho
6943855f7d fixup! ci(app): run clang-tidy (#8442) (#8460) 2026-02-12 11:35:58 -06:00
Yat Ho
bbfc9e057c chore: bump rpc versions (#8452) 2026-02-12 10:40:35 -06:00
Yat Ho
455fce4a78 ci(macos): install only required modules of qt (#8458) 2026-02-12 10:38:01 -06:00
Yat Ho
e3853d9750 build: remove ENABLE_DEPRECATED (#8461) 2026-02-12 09:56:50 -06:00
Ivan Kara
cb158cba04 feat: add multiple dht bootstrap nodes (#8446)
* Add multiple dht bootstrap nodes

* Implement suggestion

* Rename default_bootstraps to DefaultBootstraps
2026-02-12 01:16:01 -06:00
Yat Ho
cd920a7bec ci(app): run clang-tidy (#8442)
* fix(app): clang-tidy warnings

* build(app): convert checks to list

* build(app): fix clang-tidy `HeaderFilterRegex`

* ci(app): run clang-tidy

* fix: ftbfs

* wtf
2026-02-12 00:23:00 -06:00
Charles Kerr
e6d7d42e2a fix: mime-type icons on Windows (#8443)
* fix: mime-type icons on Windows

* fixup! fix: mime-type icons on Windows

use file_icon_ as the fallback icon

do not  mark the temp string as translatable

---------

Co-authored-by: Mike Gelfand <mikedld@users.noreply.github.com>
2026-02-11 22:49:24 -06:00
Charles Kerr
cbaefab599 refactor: add libtransmission/types.h (#8449)
refactor: add libtransission/constants.h
2026-02-11 16:52:29 -06:00
Charles Kerr
21874392a9 refactor: string-utils, file-utils, env (#8417)
* refactor: add libtransmission/string-utils

* refactor: add libtransmission/file-utils

* refactor: add libtransmission/env

* build: update Xcode
2026-02-11 11:21:45 -06:00
Yat Ho
4d695a8a4c perf: use timer to flush outbuf to avoid taking lock frequently (#8423)
* perf: use timer to flush outbuf to avoid taking lock frequently

* code review: extract to `flush_outbuf_soon()`

* code review: make `flush_outbuf_trigger_` const
2026-02-11 10:21:31 -06:00
Charles Kerr
831ebe6198 fix: adding file:/// uris from the command linee (#8424) 2026-02-11 09:57:56 -06:00
Charles Kerr
fee87d465f docs: fix comments for attr key in metainfo (#8434) 2026-02-10 20:44:25 -06:00
Yat Ho
4bc74e3dd4 feat: allow non-ASCII announce and webseed URLs (#8420)
* test: `tr_urlPercentEncode()`

* refactor: percent-encode URLs provided in announce list or webseeds

* test: announce list and webseed
2026-02-10 16:19:04 -06:00
Yat Ho
a89f4bd5bd perf(gtk): move from request parameters instead of copying (#8389) 2026-02-10 10:56:59 -06:00
Charles Kerr
f63db2a059 fix: support Glib::ustring in Converters (#8418)
fixes regression introduced in 64a53a8
2026-02-10 08:51:56 -06:00
Yat Ho
ea043d642b perf(test): write zero tor in 512KiB blocks (#8391)
* perf(test): write zero tor in 512KiB blocks

* code review: allocate buffer on heap
2026-02-09 22:22:45 -06:00
Charles Kerr
df16feaa36 feat: add serializer support for std::chrono::sys_seconds, std::u8string, std::filesystem::path (#8364)
* chore: rename display-mode-tests.cc as converter-tests.cc

* feat: support std::chrono::sys_seconds in serializers

* feat: support std::u8string, std::filesystem::path in serializer

* build: address review feedback

* chore: remove unnecessary helper function

* Revert "chore: remove unnecessary helper function"

This reverts commit 69ea907836.

std::to_chars() unavailable on macOS < 13.3

We can remove this hack if/when we drop support for macOS < 13.3
2026-02-09 21:04:18 -06:00
Yat Ho
bea234b8ed fix(qt): handle RPC error data object (#8388) 2026-02-09 21:02:38 -06:00
Yat Ho
a583f8e789 fix(rpc): return integers for speed limits (#8406) 2026-02-09 21:01:54 -06:00
Yat Ho
182c8ce12c fix: fail if pieces length in info dict is not multiple of 20 (#8409)
* fix: fail if `pieces` length in info dict is not multiple of 20

* fix(tests): replace potentially malicious test torrent for pieces length
2026-02-09 19:10:53 -06:00
Charles Kerr
2493c4b904 fix: use video/mp4 as the mime type for mp4 files (#8377)
* refactor: move primary_mime_type() to tr_torrent_files where it is easier to test

* fix: use video/mp4 mime type for .mp4 files

* docs: remove obsolete code comment
2026-02-09 15:53:06 -06:00
Charles Kerr
a8072d82f0 fix use different icon filenames per-client (#8281)
this prevents multiple packages from conflicting over a shared icon filename
2026-02-05 22:57:38 -06:00
Yat Ho
5320fc1a49 ci: workaround system header warnings on macOS (#8384) 2026-02-05 22:31:33 -06:00
Yat Ho
a628033637 fix(web): exception from destructing undefined property (#8374) 2026-02-05 20:43:09 -06:00
Charles Kerr
80a379f713 fix: mark strings for translation (#8351)
* fix: encryption mode not saved between sessions in GTK client

* fix: some strings were not correctly marked for translation
2026-02-05 16:12:44 -06:00
github-actions[bot]
6794c9d298 chore: update generated transmission-web files (#8376)
Co-authored-by: ckerr <70381+ckerr@users.noreply.github.com>
2026-02-05 13:09:05 -06:00
Rukario
cc66625fd2 feat: new window "Appearance settings" for web app (#7318)
* feat: new window "Appearance settings" for web app

* feat: new window "Appearance settings" for web app
2026-02-05 08:49:17 -06:00
Yat Ho
2e65935bbc build: wrap fmt::fmt-header-only with transmission::fmt-header-only (#8370) 2026-02-05 07:50:11 -06:00
Yat Ho
39803eb0f0 build: support building with system sigslot (#8371) 2026-02-04 22:46:16 -06:00
Daniel Golle
18e9fc954f build: fix external project builds with LTO-enabled toolchains (#8369)
* build: propagate LTO-aware archiver tools (CMAKE_AR, CMAKE_NM, CMAKE_RANLIB) to external projects
2026-02-04 22:45:06 -06:00
Berbe
d8a46d9e98 Fix: #8202 (refactor: use fewer raw C strings) (#8365) 2026-02-04 16:39:01 -06:00
Yat Ho
59939ad4e3 build: improve building with system libevent (#8223)
* build: improve building with system libevent

* chore: remove legacy `tr_add_external_auto_library` macro
2026-02-04 13:36:04 -06:00
Cœur
1b04d45f26 fix: ignore clang extension usage in ObjC (#8164)
* fix: ignore clang extension usage in ObjC

* Code review: adopt `kMaxCells` (324) directly.
2026-02-04 11:53:39 -06:00
Dmitry Lobanov
85b88c5f51 Adding xcode toolchain lookup. (#8342) 2026-02-04 08:11:08 -06:00
Charles Kerr
142b0af415 fix: assertion failed no timezone in fmt::chrono (#8344)
* fix: in tr_logGetTimeStr() do not use tz info on platforms that do not have it

* fix: simplify the supports-timezone check

Co-authored-by: Yat Ho <lagoho7@gmail.com>

---------

Co-authored-by: Yat Ho <lagoho7@gmail.com>
2026-02-04 07:45:44 -06:00
github-actions[bot]
60f8d43d14 chore: update generated transmission-web files (#8353)
Co-authored-by: ckerr <70381+ckerr@users.noreply.github.com>
2026-02-04 07:44:50 -06:00
Charles Kerr
f9d4ced2d0 chore: remove FMT_STRING macros (#8354) 2026-02-04 07:44:33 -06:00
Yat Ho
a1228ab1dd Revert "feat: inline delete prompt in remove dialog (#7000)" (#8349)
This reverts commit b0b8902198.
2026-02-03 23:33:50 -06:00
Charles Kerr
ca873c4ba2 fix: encryption mode not saved between sessions in GTK client (#8348) 2026-02-03 22:07:46 -06:00
Cœur
c9434a8917 Fix: torrent-metainfo unexpected: path (#8316)
* Fix: torrent-metainfo unexpected: path

* code review: adopt `ArrayKey`
2026-02-03 19:29:33 -06:00
Cœur
507a348611 docs: document different macOS versions needed for building vs running 2026-02-03 19:28:41 -06:00
Charles Kerr
bd4f81f87c fix: race condition when removing torrents in GTK client (#8341)
* fix: race condition crash when removing torrents in GTK client

* refactor: remove unused on_remove_done arg from tr_torrentRemove()
2026-02-03 18:10:54 -06:00
Charles Kerr
90402fd97b refactor: move StatsMode to tr::app (#8330)
* refactor: add StatsMode to libtransmission-app

* test: add display-mode unit tests

* feat: add apicompat for StatsMode

* refactor: use StatsMode in Qt client

* refactor: add template method for gtr_set_pref()

* refactor: use StatsMode in GTK client

* ci: use the all-tests alias instead of hardcoding tests

* ci: copy runtime DLLS into test output directory for Windows test binaries
2026-02-03 09:52:49 -06:00
Charles Kerr
b4c4047ab7 docs: add PR release notes guidelines (#8320)
* docs: add PR release notes guidelines

* fix: copypaste error
2026-02-03 08:44:00 -06:00
Charles Kerr
64a53a8219 refactor: use sigslot (#8309)
* fix: warning: declaration shadows a variable in the global namespace [clang-diagnostic-shadow]

* fix: warning: use 'contains' to check for membership [readability-container-contains]

* fix: warning: variable gl_confdir can be made static or moved into an anonymous namespace to enforce internal linkage [misc-use-internal-linkage]

* warning: function 'TorrentFilter::match_mode' has a definition with different parameter names [readability-inconsistent-declaration-parameter-name]

* build: add sigslot dependency

* refactor: use sigslot for tr::Blocklists

* refactor: use sigslot for torrent, peer-mgr, wishlist

* refactor: remove tr::SimpleObservable

* chore: make lint happy

warning: method 'make_wishlist' can be made static [readability-convert-member-functions-to-static]

warning: invalid case style for function 'make_wishlist' [readability-identifier-naming]

warning: do not declare C-style arrays, use std::array<> instead [cppcoreguidelines-avoid-c-arrays,hicpp-avoid-c-arrays,modernize-avoid-c-arrays]

* refactor: remove unused forward declaration of tr_peer

* chore: remove slop

* refactor: Blocklist::observe_changes() now returns a scoped connection

* build: use transmission/sigslot fork

* refactor: copyediting

* refactor: fix cyclical dependency loop between Wishlist and tr_peerMgr::WishlistMediator
2026-02-02 22:42:28 -06:00
corncobble
2d740b8d8c docs: update references in rpc-spec.md (#8319) 2026-02-02 07:12:04 -06:00
Charles Kerr
3c9a523573 perf: faster arrow key navigation in torrent list (#8315)
* perf: when selection changes, only update the rows whose selection changed

previously we were updating all rows

* perf: coalesce pending reloads in TorrentTableView

* refactor: return a copy rather thabn a mutable index

* refactor: move the assignment out of the if statement

* make symmetricDifference an NSIndexSet method
2026-02-01 21:01:28 -06:00
Charles Kerr
2649e7acdd refactor: use std::filesystem for more file utils (#8296)
* fix: warning: declaration shadows a variable in the global namespace [clang-diagnostic-shadow]

* fix: warning: use 'contains' to check for membership [readability-container-contains]

* fix: warning: variable gl_confdir can be made static or moved into an anonymous namespace to enforce internal linkage [misc-use-internal-linkage]

* warning: function 'TorrentFilter::match_mode' has a definition with different parameter names [readability-inconsistent-declaration-parameter-name]

* refactor: use std::filesystem for tr_sys_path_is_same()

* refactor: use std::filesystem for tr_sys_path_exists()

* refactor: use std::filesystem for tr_sys_path_is_relative()

* refactor: use std::filesystem for tr_sys_path_get_info()

* refactor: use std::filesystem for tr_sys_dir_create()

* refactor: add `maybe_set_error()` helper

* refactor: change behavior to match previous impl

* fix: tr_sys_path_is_same() checks

refactor: address code review feedback

* refactor: address code review feedback

* chore: fix readability-else-after-return clang-tidy warning

* fix: warning: Value stored to 'created' during its initialization is never read [clang-analyzer-deadcode.DeadStores]

fix: warning: parameter 'permissions' is unused [misc-unused-parameters]

* ci: work around a MSVC STL 14.44.35207 clang-tidy false warning

* refactor: simplify return logic of tr_sys_path_is_same()
2026-02-01 15:37:37 -06:00
reardonia
c1e4221a75 introduce 3 priority levels to session event loop, set peer traffic t… (#7140)
* introduce 3 priority levels to session event loop, set peer traffic to lower priority than RPC events.

Co-authored-by: TR Reardon <reardonia@github.com>
2026-01-31 15:07:05 -06:00
Yat Ho
e38ace6b0f fix: -DENABLE_UTP=OFF FTBFS (#8301) 2026-01-31 12:53:58 -06:00