Commit Graph

40 Commits

Author SHA1 Message Date
Parnassius 6b5f7a7aac
Keep the profile list sorted when adding profiles. By @Parnassius (#1986) 2024-05-25 14:00:51 +01:00
Parnassius 9b8dbcecfb
Sort profiles in the Backup Now tray menu (#1899)
The profile list in the main window is already sorted by name (alphabetically, case-sensitive). However the profile list in the *Backup Now* action found in the tray menu wasn't. This commit constructs the sql query to return the profiles in order.

* src/vorta/tray_menu.py
2024-04-01 21:00:53 +02:00
real-yfprojects 24e1dd5c56
Run pre-commit (with newly added ruff) on code base.
Includes all changes by `pre-commit --all-files` including the changes introduced by ruff.
2023-05-01 10:28:11 +02:00
i1sm3ky 7535f92ac8
PyQt6 Upgrade (#1685)
This puts Vorta on PyQt6 and starts a new main branch 0.9.

---------

Co-authored-by: real-yfprojects <real-yfprojects@users.noreply.github.com>
Co-authored-by: Manu <3916435+m3nu@users.noreply.github.com>
Co-authored-by: yfprojects <62463991+real-yfprojects@users.noreply.github.com>
2023-04-17 11:17:01 +01:00
real-yfprojects 78ec74a72c
Fix tray menu on XFCE.
The menu is build ones before the tray icon is clicked so that it is registered correctly.

* src/vorta/tray_menu.py (TrayMenu): Rename `on_user_click` to `build_menu`.

* src/vorta/tray_menu.py (TrayMenu.__init__): Call `build_menu`.
2023-01-21 19:51:56 +01:00
Manu b6a24debb7 Apply automatic formatting 2022-08-15 15:23:55 +02:00
real-yfprojects 7003d69577
Update `diffresult.ui` with new features and prettyfy it.
* src/vorta/assets/UI/diffresult.ui : Replace `okButton` with `QDialogButtonBox`
	that has a `close` button.

* src/vorta/views/diff_result.py : Connect `buttonBox` instead of `okButton` to Dialog.

* src/vorta/assets/UI/diffresult.ui : Add title to `DiffResult` dialog and simplify file name display.

* src/vorta/assets/UI/diffresult.ui : Add comboBox to change display mode of tree view.

* src/vorta/views/diff_result.py : Connect comboBox to `DiffTree`.

* src/vorta/application.py : Remove `eventFilter` setup for palette changes.

* src/vorta/tray_menu.py : Connect directly to `app.paletteChanged`.
* src/vorta/views/archive_tab.py
* src/vorta/views/repo_tab.py
* src/vorta/views/schedule_tab.py
* src/vorta/views/source_tab.py

* src/vorta/assets/UI/diffresult.ui : Add buttons to keep folders on top when sorting and
	to expand and collapse all items.

* src/vorta/views/diff_result.py : Connect the added buttons.

* src/vorta/assets/icons/angle-up-solid.svg : Add icon for `bCollapseAll`.

* src/vorta/views/diff_result.py : Add context menu to `treeView` that allows expanding
	and copying of an item.

* src/vorta/views/diff_result.py : Add copy shortcut to `treeView`.
2022-07-25 16:13:28 +02:00
Manu 4c3e97a76c
Refactor: Split up vorta/models.py (#1112) 2021-11-17 13:14:11 +04:00
Manu 09fe3aa5b8
More accurate text, when Borg is running. (#1111) 2021-11-15 17:21:07 +04:00
Manu 0b2a7c02c3
Remove jobs before deleting profile (#1107) 2021-11-15 15:18:11 +04:00
Manu b38e986683
Use native threading module in job_manager. (#1096) 2021-11-12 11:05:31 +04:00
Bastien 54d8bbe6b1
Implement multiple queues. By @bastiencyr (#1045)
Scheduler now has the ability to run jobs on multiple repositories concurrently and run multiple jobs on one repo (by queuing them).

For each repository, there is one queue. I have represented a queue by a 'site'. Between sites (ie repository), tasks run concurrently. On one site, tasks run one by one. The user also run tasks by adding them to the queue but he can't run multiple backups because start backup button is disabled when a job is running.
2021-10-04 15:31:41 +04:00
Olivier Le Moal 7d2dbe001d
Fix double call to on_user_click. By @olivierlemoal (#1031) 2021-08-02 15:02:37 +04:00
Manu 15a97e4570
Open window on left-click. Fixes #938 (#945)
* XDG-compliant tray behavior
2021-04-17 16:18:00 +08:00
Samuel Woon 4eafad5472
Use single tray icon for light and dark themes. By @samuel-w 2020-09-07 17:36:25 +08:00
Manu 79ef4717d7
Proper dark style support and removal of style hacks (#475)
* Remove qtdarkstyle and custom fusion style.
* Support instant changes from light to dark style
* Adjust SVG icon colors on-the-fly, adjust to dark theme in real time (macOS)
* Add OS-independent dark mode detection. Fix QToolbox style after theme changes.
* Remove some unnecessary style options, like `uses_light_icon` and `use_dark_style`.
2020-05-31 19:29:26 +08:00
Antonio Larrosa 2eac612bd7 Show/Hide the main window in KDE when clicking on the tray icon (#143) 2019-02-01 20:41:40 +08:00
TW 4c8363d5ad Add app name to tray menu and window title (#153) 2019-01-22 11:28:29 +08:00
TW e15675599e i18n infrastructure and policy (#134)
- Adds support for translating Python strings and .UI files with Qt's `QTranslator` class.
- Integrates the Transifex cloud translation service for managing translations.
- Adds translation policy and guidelines to `CONTRIBUTING.md`
2019-01-20 11:50:10 +08:00
Manuel Riel 3c519e4928
v0.5.3 (#80)
* Apply selection status to children in restore-dialog. Fixes #69

* Backup triggered from system tray wont use correct profile. Fixes #78

* Use the term FILE if both FILE or FOLDER is meant. Fixes #55

* Implement update check on/off setting for macOS

* Implement autostart setting for macOS. Fixes #56
2018-12-05 17:05:47 +08:00
Manuel Riel 30c6549f0f
v0.5.2 Bugfixes and new Misc Settings Tab (#71)
* Fix uneven vspace. Fixes #67

* Add Python 3.7 to Travis. Use tox to test multiple Python versions. Fixes #72

* Add command line option to avoid forking and open main window while debugging. Fixes #73

* Use slug of profile name as archive prefix. Fixes #46

* Add settings tab. Add light system tray icon option. Fixes #56 and #74

* Incorporate review by @ThomasWaldmann
2018-12-04 10:58:12 +08:00
Manuel Riel 7b881953a1
Extract cmd (#61)
* Add extract feature (#26), fix stdout/err blocking (#21)
* Other small fixes.
2018-11-27 19:33:16 +08:00
Manu 3492da4e06 Coding style and menu fix. 2018-11-26 15:35:22 +08:00
Manu aa9ef7642f No submenu in system tray, when only one profile exists. Fixes #57 2018-11-26 15:02:07 +08:00
Thomas Waldmann 642c715f49 tray menu: work around bug, fixes #48 2018-11-24 04:16:51 +01:00
Thomas Waldmann b448659e3f tray menu: document bug that causes menu state to not refresh, see #48
single LMB click fails to refresh, double LMB and MMB works.
2018-11-24 04:04:28 +01:00
Thomas Waldmann 162f6bf7a5 refactor tray menu: deduplicate 2018-11-24 03:41:09 +01:00
Manu 99d8fa2d1e Update profile names on menu open. Fixes #18 2018-11-20 09:04:11 +08:00
Manu bae80c9d57 Working version of multi-profile support. 2018-11-17 16:51:53 +08:00
Manu 3ee8a35ded Refactor BorgThread into new class to support different commands. 2018-11-03 16:55:38 +08:00
Manu 20252cfca7 Refactor BorgThread into 2 separate classes. 2018-11-02 21:44:49 +08:00
Manu 54cd7c9dc9 Improve the connection between BorgThread and all other Widgets to show an accurate status. Allow copying public SSH key to clipboard. 2018-11-02 18:35:31 +08:00
Manu 3a5eafd061 Replace peewee_migrate with native solution. Fix window activation. 2018-11-02 00:53:41 +08:00
Manu f05b020771 Refactoring around single backup function. 2018-11-01 00:09:01 +08:00
Manu 44cbd0e127 Fix scheduler issues. 2018-10-31 20:44:29 +08:00
Manu c896388ae8 Subclass QApplication. 2018-10-31 19:14:12 +08:00
Manu 7549e73189 Start adding tests. Work on scheduler-tab. (both WIP) 2018-10-31 01:46:37 +08:00
Manu 4f0de320c4 Make BorgThread more independent. Fix issue when calling from apscheduler. 2018-10-30 01:25:28 +08:00
Manu ff37a8e6e0 Improve finding assets, make cancelling more reliable. 2018-10-29 13:49:25 +08:00
Manu df04edb222 Change to src-based layout. Start work on scheduler. 2018-10-29 13:12:45 +08:00
Renamed from vorta/tray_menu.py (Browse further)