Add settings for a "default restore location"

Registered by Philippe Delodder

While testing, the need to always specify a restore destination is tiresome. Add a "default restore destination" to the advanced tab of the settings.

Blueprint information

Status:
Complete
Approver:
Rob Oakes
Priority:
Low
Drafter:
Rob Oakes
Direction:
Approved
Assignee:
Philippe Delodder
Definition:
Approved
Series goal:
None
Implementation:
Implemented
Milestone target:
milestone icon 0.2
Started by
Philippe Delodder
Completed by
Rob Oakes

Related branches

Sprints

Whiteboard

add a few lines of code that save it into the settings (BackupSettings.py) and retrieve it into the Gui (settingsdialog.py). And lastly, two or three lines of code to the actual restore method (utils/__init__.py) that check if it is enabled, and if not, to prompt the user for a restore location.

% Comments - Rob Oakes %

It would be nice to have a checkbox on the main settings form (either the "settings" or "advanced tab") with a line-edit that specifies the default location. To the right of the line edit, should be a button that launches the QFileDialog so that a user can select which folder they would like to serve as the default restore site. When the checkbox is empty, the button and line edit should be appropriately disabled (context sensitivity and all that).

Following, code should be added to the settings (BackupSettings.py) that then loads these preferences to the existing backupsettings class. Additional code should also be added to the Settings Gui (settingsdialog.py) for manipulation of the preferences. Lastly, implementation code should be added to the restore method (utils/__init__.py) that check to see if it is enabled, and if not, to prompt the user for a restore location.

(?)

Work Items

This blueprint contains Public information 
Everyone can see this information.