mirror of
https://github.com/borgbase/vorta
synced 2025-01-03 05:36:19 +00:00
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
This commit is contained in:
parent
bde55188e4
commit
9b8dbcecfb
1 changed files with 1 additions and 1 deletions
|
@ -59,7 +59,7 @@ def build_menu(self):
|
||||||
cancel_action.triggered.connect(self.app.backup_cancelled_event.emit)
|
cancel_action.triggered.connect(self.app.backup_cancelled_event.emit)
|
||||||
else:
|
else:
|
||||||
status.setText(self.tr('Next Task: %s') % next_task_time)
|
status.setText(self.tr('Next Task: %s') % next_task_time)
|
||||||
profiles = BackupProfileModel.select()
|
profiles = BackupProfileModel.select().order_by(BackupProfileModel.name)
|
||||||
if profiles.count() > 1:
|
if profiles.count() > 1:
|
||||||
profile_menu = menu.addMenu(self.tr('Backup Now'))
|
profile_menu = menu.addMenu(self.tr('Backup Now'))
|
||||||
for profile in profiles:
|
for profile in profiles:
|
||||||
|
|
Loading…
Reference in a new issue