diff --git a/CMakeLists.txt b/CMakeLists.txt
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -30,6 +30,7 @@
Notifications
Runner
Activities
+ FileMetaData
)
add_definitions(-DQT_NO_NARROWING_CONVERSIONS_IN_CONNECT)
diff --git a/extension/_locales/en/messages.json b/extension/_locales/en/messages.json
--- a/extension/_locales/en/messages.json
+++ b/extension/_locales/en/messages.json
@@ -63,6 +63,13 @@
"description": "Title for Downloads plugin",
"message": "Show downloads in notification area"
},
+ "options_plugin_downloads_saveOriginUrl": {
+ "description": "Option for saving download source URL in file metadata",
+ "message": "Save URL a file was downloaded from in the file's attributes"
+ },
+ "options_plugin_downloads_saveOriginUrl_description": {
+ "message": "Note: The URL may contain sensitive information that could be disclosed when the file is accessible by or shared with others"
+ },
"options_plugin_tabsrunner_title": {
"description": "Title for Browser Tabs KRunner plugin",
diff --git a/extension/constants.js b/extension/constants.js
--- a/extension/constants.js
+++ b/extension/constants.js
@@ -27,7 +27,8 @@
enabled: true
},
downloads: {
- enabled: true
+ enabled: true,
+ saveOriginUrl: false
},
tabsrunner: {
enabled: true
diff --git a/extension/extension-downloads.js b/extension/extension-downloads.js
--- a/extension/extension-downloads.js
+++ b/extension/extension-downloads.js
@@ -62,7 +62,7 @@
// only forward certain download properties back to our host
var whitelistedDownloadProperties = [
- "id", "url", "finalUrl", "filename", "mime", "startTime", "estimatedEndTime", "totalBytes", "bytesReceived", "state", "error", /*"canResume"*/, "paused"
+ "id", "url", "finalUrl", "filename", "mime", "startTime", "estimatedEndTime", "totalBytes", "bytesReceived", "state", "error", /*"canResume"*/, "paused", "incognito"
];
function createDownload(download) {
diff --git a/extension/options.html b/extension/options.html
--- a/extension/options.html
+++ b/extension/options.html
@@ -60,6 +60,12 @@
+
+
+ I18N
+