Give debug archive save location dialog a default location

Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
This commit is contained in:
Claudio Cambra 2024-04-01 17:54:25 +08:00 committed by Camila Ayres
parent 64b7282bd4
commit 2323b843f0
1 changed files with 7 additions and 1 deletions

View File

@ -498,7 +498,13 @@ void GeneralSettings::slotIgnoreFilesEditor()
void GeneralSettings::slotCreateDebugArchive()
{
const auto filename = QFileDialog::getSaveFileName(this, tr("Create Debug Archive"), QString(), tr("Zip Archives") + " (*.zip)");
const auto filename = QFileDialog::getSaveFileName(
this,
tr("Create Debug Archive"),
QStandardPaths::writableLocation(QStandardPaths::DocumentsLocation),
tr("Zip Archives") + " (*.zip)"
);
if (filename.isEmpty()) {
return;
}