* feat: allow downloading sequentially from a specific piece
* Apply review changes
Co-authored-by: Yat Ho <lagoho7@gmail.com>
* Use sequential_download_from_piece param in torrent-add, and save it to resume file
* fix: change observable type bool -> tr_piece_index_t
* fix: run code_style.sh
* fix: improved test and missing comment
Co-authored-by: Yat Ho <lagoho7@gmail.com>
* fix: apply similar changes to sequentialDownloadFromPiece test
* docs: change parameter type boolean -> number
---------
Co-authored-by: Yat Ho <lagoho7@gmail.com>
* refactor: rename torrent-complete-verify-enabled to snake_case
* docs: add docs for torrent_complete_verify_enabled
* code review: correct docs data type
* chore: remove unused TR_KEY_comment_utf_8
chore: remove unused TR_KEY_created_by_utf_8
chore: remove unused TR_KEY_name_utf_8
chore: remove unused TR_KEY_path_utf_8
These keys have been unused since fe288b45 (#2542)
* chore: remove unused TR_KEY_ut_comment
chore: remove unused TR_KEY_ut_recommend
Never used. We can add these back when we support them
* remove unused TR_KEY_queue_move_bottom
remove unused TR_KEY_queue_move_down
remove unused TR_KEY_queue_move_top
remove unused TR_KEY_queue_move_up
Added in c1559f3c, but never used.
* chore: remove unused TR_KEY_play_download_complete_sound
Never used and is a duplicate of TR_KEY_torrent_complete_sound_enabled.
Maybe it was a draft name that accidentally snuck into production?
* chore: remove unused TR_KEY_downloaders
chore: remove unused TR_KEY_min_announce_interval
Unused since 7f60738c (#2529)
* chore: remove unused TR_KEY_recent_download_dir_1
chore: remove unused TR_KEY_recent_download_dir_2
chore: remove unused TR_KEY_recent_download_dir_3
chore: remove unused TR_KEY_recent_download_dir_4
chore: remove unused TR_KEY_recent_relocate_dir_1
chore: remove unused TR_KEY_recent_relocate_dir_2
chore: remove unused TR_KEY_recent_relocate_dir_3
chore: remove unused TR_KEY_recent_relocate_dir_4
Looks like these were intended for the GTK client's recent dirs
feature (see gtr_save_recent_dir() and gtr_get_recent_dirs()),
but that code does it better without quarks.
* Add peer traffic data in torrent-get rpc interface
* style issue
* update peer rpc spec
* Add bytes_sent_to_peer and bytes_sent_to_client in peer_info and peer-mgr
* make counting variables non-persistent and limited to last several seconds
* change variable to snake-case
* use size_t instead of uint16_t for bytes
* fix use camel_case
* move to did_write
* dual stack on windows
* fix memory leak
* some changes suggested by @tearfur
* close winsocket at stop_server and code style issues
* remove WSA relevant codes since no need
* fix clang-tidy warnings
* fix clang-tidy warnings v2
---------
Co-authored-by: Mike Gelfand <mikedld@users.noreply.github.com>
Co-authored-by: zyhe <zhuoyuan@pku.edu.cn>
* macOS 26: set icons on most menu items
This is a first pass, and likely needs some adjustments and updated.
This also removes Select None, which does not seem to be in favor in Mac apps anymore.
* Explicitly set the image on toolbar items' menu representation
* Icons for Info > Files context menu
* Generate imported targets for MbedTLS
This change allows to use MbedTLS 3.6 config module without significant
code alteration which simplifies integration with future versions of
MbedTLS.
Signed-off-by: Azamat H. Hackimov <azamat.hackimov@gmail.com>
* Update MBEDTLS_MINIMUM to 2.7
Code expects API from MbedTLS 2.x or later.
Signed-off-by: Azamat H. Hackimov <azamat.hackimov@gmail.com>
---------
Signed-off-by: Azamat H. Hackimov <azamat.hackimov@gmail.com>
* add raw PeerID to rpc interface
* use snake_case
* add peer_id to doc
* pass peer_id only and use peer_id_t and base64 encoding when passing peer_id to stat
* clang format
* fix dangling pointer
* remove std::optional
* clean up tr_peerMsgs constructor
* move b64encode to rpc
* just use constructor
* Update libtransmission/peer-msgs.cc
Co-authored-by: Yat Ho <lagoho7@gmail.com>
---------
Co-authored-by: Yat Ho <lagoho7@gmail.com>
Co-authored-by: Charles Kerr <charles@charleskerr.com>
- Use modern APIs to prevent idle system sleep.
- Consolidate all related logic.
- Make Controller class a little bit less huge.
Signed-off-by: Dzmitry Neviadomski <nevack.d@gmail.com>
Not all Qt styles seem to provide a `DirOpenIcon` icon (Windows 11 style
doesn't, which leads to no icon in the tree), and `DirIcon` is usually
the same (or worse) as the one returned by our icon cache. It's also not
clear why we'd want an _open_ folder icon specifically, given that the
condition in the `else` branch is essentially checking the same thing.