Skip to content
Snippets Groups Projects
Commit a1c2b8ad authored by Andreas Hatziiliou's avatar Andreas Hatziiliou
Browse files

account_archive: unify archive file type

When creating an account archive, there would be no default
suffix. Then, when importing the archives, we would filter
for .gz files by name. The goal is to implement a .jami
file extension for archives across all platforms.

Todo: implement custom MIME type for custom icons.

GitLab: #1256
Change-Id: I202ae5670c928f35b0eaf711abf7249ec3f304b9
parent 7424227f
Branches
Tags
No related merge requests found
......@@ -119,7 +119,8 @@ Item {
"title": JamiStrings.backupAccountHere,
"fileMode": JamiFileDialog.SaveFile,
"folder": StandardPaths.writableLocation(StandardPaths.HomeLocation) + "/Desktop",
"nameFilters": [JamiStrings.jamiArchiveFiles, JamiStrings.allFiles]
"nameFilters": [JamiStrings.jamiAccountFiles, JamiStrings.allFiles],
"defaultSuffix": ".jac"
});
dlg.fileAccepted.connect(function (file) {
// Is there password? If so, go to password dialog, else, go to following directly
......
......@@ -216,7 +216,7 @@ Item {
property string backupAccountBtn: qsTr("Back up account")
property string success: qsTr("Success")
property string error: qsTr("Error")
property string jamiArchiveFiles: qsTr("Jami archive files (*.gz)")
property string jamiAccountFiles: qsTr("Jami account (*.jac)")
property string allFiles: qsTr("All files (*)")
// ContactItemDelegate
......
......@@ -349,8 +349,9 @@ SettingsPageBase {
"title": JamiStrings.backupAccountHere,
"fileMode": FileDialog.SaveFile,
"folder": StandardPaths.writableLocation(StandardPaths.DesktopLocation),
"nameFilters": [JamiStrings.jamiArchiveFiles, JamiStrings.allFiles]
});
"nameFilters": [JamiStrings.jamiAccountFiles, JamiStrings.allFiles],
"defaultSuffix": ".jac"
})
dlg.fileAccepted.connect(function (file) {
// is there password? If so, go to password dialog, else, go to following directly
var exportPath = UtilsAdapter.getAbsPath(file.toString());
......
......@@ -133,7 +133,7 @@ Rectangle {
"title": JamiStrings.openFile,
"fileMode": JamiFileDialog.OpenFile,
"folder": StandardPaths.writableLocation(StandardPaths.HomeLocation) + "/Desktop",
"nameFilters": [JamiStrings.jamiArchiveFiles, JamiStrings.allFiles]
"nameFilters": [JamiStrings.jamiAccountFiles, JamiStrings.allFiles]
});
dlg.fileAccepted.connect(function (file) {
filePath = file;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment