Commit Graph

7 Commits

Author SHA1 Message Date
Roberto Previdi bcc126b634
Improve size column readability in archives tab (#1598)
Use one size unit for all archives. The unit is selected by a simple algorithm that picks the largest unit that can represent the smallest size with a given precision. Align all sizes in archive and source tab to the left.

* src/vorta/utils.py : Implement `find_best_size_formatting`. Add missing sizes to `sort_sizes`. Simplify `pretty_bytes` and add `fixed_unit` option for use with `find_best_size_formatting`. Implement `clamp` utility function. Add type hints and docstrings.

* src/vorta/views/archive_tab.py (ArchiveTab.populate_from_profile): Use `find_best_sizes_formatting`.

* src/vorta/views/source_tab.py (SizeItem.__init__): Set alignment to left.

* tests/test_utils.py : Add comprehensive tests for `pretty_bytes` and `find_best_sizes_formatting`.

Co-authored-by: yfprojects <62463991+real-yfprojects@users.noreply.github.com>
2023-02-21 21:01:49 +00:00
Manu 6779baecff
Use new ssh://-style URL format as placeholder and in test (#1473) 2022-12-16 11:19:34 +01:00
Manu 7949e80381
More test fixes, avoid segfault when quitting (#877) 2021-02-22 09:45:43 +08:00
samuel-w 7d7b7a2742
Improved password handling and transparency. By @samuel-w (#550) 2021-01-18 15:52:07 +08:00
Samuel Woon 9568a1b410
Get keyring at runtime. By @samuel-w (#635) 2020-09-27 15:19:39 +08:00
Manu 82844a17b4
Add macOS notarization, use Github Workflows for testing (#407)
* Improve macOS packaging, add notarization.
* Properly use QApplication while testing, remove workarounds.
* Use Github Workflows instead of Travis.
* Remove outdated test workaround.
2020-03-03 13:19:36 +08:00
Manuel Riel 4f6137207b
v0.6.1 Release (#86)
* Fix unicode issue with Darwin Keychain. Add new test for it. Fixes #89
* Don't add invalid repo. Improve error message when adding repo fails. Fixes #87
* Add setting for archive name and prune prefix. #88
* UI tweaks.
2018-12-14 16:03:26 +08:00