Commit Graph

15523 Commits

Author SHA1 Message Date
tearfur 2941005e34 perf: convert comparator functors to static constexpr (#5687) 2023-06-30 12:29:53 -05:00
Chris Kankiewicz 3b59729e07 docs: update documentation of logging levels (#5700) 2023-06-30 12:29:32 -05:00
Charles Kerr a957f90ee0 chore: update generated transmission-web files 2023-06-28 11:48:46 -05:00
tearfur 87388ee7c8 perf: make `CompareCacheBlockByKey` constexpr (#5678) 2023-06-28 11:47:46 -05:00
Geoffrey Bonneville 115a069d8d fix: do not write log if file handler is bad (#5675) 2023-06-27 13:56:01 -05:00
Charles Kerr d2200cf9ea perf: in cache, flush biggest contiguous blocks (#5671) 2023-06-27 12:20:38 -05:00
Charles Kerr b86afe185b fixup! fix: return error when renaming into existing file (#5563) 2023-06-22 17:33:19 -05:00
tearfur 4343926441 encode `&key=` as fixed-width 8-digit hex (#5652) 2023-06-21 11:53:28 -05:00
Dmitry Antipov 47a3a92a0e fix: Qt 6.5 deprecation warning (#5552) 2023-06-19 16:59:12 -05:00
Василий Чай 504b77b0b9 fix: return error when renaming into existing file (#5563) 2023-06-19 00:31:18 -05:00
Gary Elshaw de5f5a2efb fix: restore png files that were corrupted in recent "compression" script 2023-06-18 14:12:35 -05:00
Cœur 90f8db7bf7 fix 'setNeedsDisplay' is deprecated: first deprecated in macOS 10.14 (#5633) 2023-06-18 13:33:08 -05:00
Robin Seth Ekman bc9e8e406e fix: transmission-remote only list every other label (fixes #5571) (#5572) 2023-06-11 20:20:29 -05:00
Charles Kerr 61c79b5944 Revert "fix: some labels not displayed in transmission-remote (#5600)"
This reverts commit a91c985674.
2023-06-11 11:26:03 -05:00
Charles Kerr 3aabde310c chore: improve lossless compression of png files (#5586) 2023-06-10 19:02:37 -05:00
Charles Kerr a91c985674 fix: some labels not displayed in transmission-remote (#5600)
Fixes #5571.
2023-06-10 19:01:53 -05:00
Mike Gelfand 3b44fa034d Avoid locale use in `tr_truncd()` (#5587)
`tr_parseNum<>()` is implemented with `fast_float::from_chars()`, and
the latter is documented as "expecting a locale-indepent format
equivalent to what is used by std::strtod in the default ("C") locale".
To accomodate locale independent number parsing, switch back to
locale-independent number formatting in `tr_truncd()` by both removing a
`L` format specifier from `fmt::format_to_n()` call and using a fixed
"." decimal separator when truncating the value.
2023-06-10 17:09:55 -05:00
Charles Kerr edcddd00dd perf: avoid extra work in read_vc() (#5527) 2023-05-14 15:12:28 -05:00
Charles Kerr 04b5329345 fix: avoid unintentional map insertions in ActiveRequests::count() (#5520) 2023-05-12 20:18:47 -05:00
Gary Elshaw 43d1fd33a3 fix: typos in libtransmission tests (#5468) 2023-05-09 13:46:26 -05:00
Gary Elshaw 96aefb5fc3 fix: comment typos in libtransmission (#5473) 2023-05-09 13:45:15 -05:00
Jonatan 3605330b6e docs: update translation site names (#5481)
See https://help.transifex.com/en/articles/7171815-web-application-s-domain-change
2023-05-09 13:44:36 -05:00
Charles Kerr a7c98b3d5f fix: does not trash added torrent files when asked (#5505) 2023-05-08 16:22:11 -05:00
Charles Kerr 2184095871 fix: show magnet name in compact mode (#5491) 2023-05-07 13:05:00 -05:00
Zhenfu Shi 8a3eba129a fix: wrong case in AppKit.h (#5456) 2023-04-27 14:05:14 -05:00
Mike Gelfand 411b66cf88 fix: use user-preferred locale (#5444)
* Use user-preferred locale

Previous fix adding `L` format specifier was correct but only fixed half
of the problem, as C++ locale is set up to be "C" by default. GTK client
used to call `setlocale(LC_ALL, "")` to set up user-preferred locale
which only affected C functions and `std::locale` (used by libfmt) was
unaware of those changes.

Apply the fix to all the binaries since they're all doing some sort of
output to the user and calling libtransmission helpers, as well as using
libfmt directly.

* Improve libtransmission's json-test

Set the locale C++ way to avoid any sort of inconsistencies, and also
restore it to the old one once finished testing.

* Improve transmission-show test runner script

Quote outputs to avoid CMake error about `message()` being called with
no arguments. Capture stderr to the same output file. Fallback to `git
diff` if `diff` wasn't found. A few other minor changes.
2023-04-27 09:11:06 -05:00
Charles Kerr 02b8535aa1 perf: in Buffer::Iterator, defer evbuffer API calls (#5420) 2023-04-26 23:29:57 -05:00
Charles Kerr 2be3ecfd27 fix: bug that prevented providing the final metadata piece (#5460)
Fixes bug in implementation of BEP 9

Xref: https://www.bittorrent.org/beps/bep_0009.html
2023-04-26 23:29:07 -05:00
Charles Kerr b106da10ed fix: null tier name in inspector list (#5462) 2023-04-26 23:27:39 -05:00
Charles Kerr f54f9e1c45 fix: no such file or directory warning in transmission-cli (#5426) 2023-04-20 17:41:06 -05:00
Charles Kerr c37b297b25 fix: minor warnings (#5409)
* chore: fix readability-qualified-auto warnings

* chore: fix clang-analyzer-core.uninitialized.Branch warning

* fix: collision of key 'ERROR' in transmission-qt

* chore: silence -Wshadow warning

* chore: silence warning C4100: 'iter': unreferenced formal parameter

* chore: fix warning C4127: conditional expression is constant warning
2023-04-20 14:16:09 -05:00
Kyle Sanderson 256fd698d7 fix: uninitialized session_id_t values (#5396) 2023-04-20 14:13:51 -05:00
Charles Kerr 58ee5e5520 chore: bump version to 4.0.4-dev 2023-04-14 23:28:13 -05:00
Charles Kerr 6b0e49bbb2 chore: bump version to 4.0.3 2023-04-13 21:21:36 -05:00
Mike Gelfand 4c8037afee
Sync translations (#5391) 2023-04-14 03:00:44 +01:00
Charles Kerr aa9e539e9e
docs: add 4.0.3 release notes (#5389) 2023-04-13 15:24:22 -05:00
Charles Kerr 3feb8e11e3
deps: bump libdeflate to v1.18 (#5388)
this is a bugfix-only release, semver patch
2023-04-13 13:36:00 -05:00
github-actions[bot] b45b5fbc8c
chore: update generated transmission-web files (#5387)
Co-authored-by: ckerr <ckerr@users.noreply.github.com>
2023-04-13 12:06:26 -05:00
Charles Kerr ce316309e7
fix: missing date-added field in web torrent inspector (#5386) 2023-04-13 12:01:34 -05:00
Charles Kerr 8dbf40613a
fix: show announce url origin in inspector tier list (#5382) 2023-04-12 20:44:26 -05:00
Charles Kerr c3038d8ed7
fix: check for input focus before looking at keyboard shortcuts (#5381)
Fixes #5326.

Notes: Turned off keyboard shortcuts when input fields have focus.
2023-04-12 20:09:01 -05:00
Charles Kerr 649be3b772
fix: use a Verify keyboard shortcut that does not conflict with Paste (#5318) 2023-04-12 18:05:57 -05:00
Charles Kerr 0e2b8d721c
fix: only torrent metainfo display-name as a fallback (#5378)
Fixes #5347.
2023-04-12 17:26:43 -05:00
Mike Gelfand ac4a793816
Uninstall preinstalled OpenSSL on Windows GHA builder (#5376) 2023-04-12 20:55:49 +01:00
Charles Kerr e33d9536ef
fix: return success on RPC add-torrent duplicate (#5370)
Keep Transmission 3's behavior to avoid unannounced API change
2023-04-12 13:37:04 -05:00
lawrence 23c248a5e9
fix: restore accidentally-deleted copyright notice (#5372)
Co-authored-by: lawrence <anonymous@null.null>
2023-04-12 13:03:00 -05:00
Charles Kerr 74262a65c2
ci: fix Sanity/Windows GitHub Actions (#5371) 2023-04-11 18:16:16 -05:00
Cœur 91717fe91d
fix: potential NSString leak in tr_strv_convert_utf8() 2023-04-11 17:36:22 -05:00
Charles Kerr c76cb4db51
fix: silence torrent-metainfo warnings for cross_seed_entry, uid (#5365) 2023-04-10 11:07:43 -05:00
Gary Elshaw 1c64bdd352
fix: in prefs, reduce tracker list height to fit on small displays 2023-04-09 22:08:35 -05:00