feat(core): long press to force download

This commit is contained in:
rhunk
2024-01-21 11:00:31 +01:00
parent 05a495d51f
commit 5498f8206d
8 changed files with 87 additions and 48 deletions

View File

@ -182,11 +182,11 @@
},
"opera_download_button": {
"name": "Opera Download Button",
"description": "Adds a download button on the top right corner when viewing a Snap"
"description": "Adds a download button on the top right corner when viewing a Snap.\nLong press on buttons will force download"
},
"chat_download_context_menu": {
"name": "Chat Download Context Menu",
"description": "Allows you to download media from a conversation by long-pressing them"
"download_context_menu": {
"name": "Download Context Menu",
"description": "Allows you to download/preview messages from a conversation or a story using the context menu.\nLong press on buttons will force download"
},
"ffmpeg_options": {
"name": "FFmpeg Options",

View File

@ -43,7 +43,7 @@ class DownloaderConfig : ConfigContainer() {
}
val downloadProfilePictures = boolean("download_profile_pictures") { requireRestart() }
val operaDownloadButton = boolean("opera_download_button") { requireRestart() }
val chatDownloadContextMenu = boolean("chat_download_context_menu")
val downloadContextMenu = boolean("download_context_menu")
val ffmpegOptions = container("ffmpeg_options", FFMpegOptions()) { addNotices(FeatureNotice.UNSTABLE) }
val logging = multiple("logging", "started", "success", "progress", "failure").apply {
set(mutableListOf("success", "progress", "failure"))