Copy file path (not url) on saving to disk

This commit is contained in:
Yuriy Puchkov
2020-09-03 18:40:49 +03:00
parent 77c3d785ab
commit 0fce7472fd
22 changed files with 717 additions and 499 deletions

View File

@@ -380,6 +380,18 @@ void ConfigHandler::setCopyAndCloseAfterUploadEnabled(const bool value) {
m_settings.setValue(QStringLiteral("copyAndCloseAfterUpload"), value);
}
bool ConfigHandler::copyPathAfterSaveEnabled() {
bool res = false;
if (m_settings.contains(QStringLiteral("copyPathAfterSave"))) {
res = m_settings.value(QStringLiteral("copyPathAfterSave")).toBool();
}
return res;
}
void ConfigHandler::setCopyPathAfterSaveEnabled(const bool value) {
m_settings.setValue(QStringLiteral("copyPathAfterSave"), value);
}
void ConfigHandler::setDefaults() {
m_settings.clear();
}