feat(core): auto close friend feed menu

Automatically closes the Friend Feed Menu after pressing a setting button of SnapEnhance

Signed-off-by: rhunk <101876869+rhunk@users.noreply.github.com>
This commit is contained in:
rhunk
2024-06-21 21:23:30 +02:00
parent 5d2277db7c
commit 4beb63e7aa
3 changed files with 14 additions and 4 deletions

View File

@@ -555,6 +555,10 @@
"name": "Friend Feed Menu Buttons",
"description": "Select which buttons to show in the Friend Feed Menu"
},
"auto_close_friend_feed_menu": {
"name": "Auto Close Friend Feed Menu",
"description": "Automatically closes the Friend Feed Menu after pressing a setting button"
},
"vertical_story_viewer": {
"name": "Vertical Story Viewer",
"description": "Enables the vertical story viewer for all stories"

View File

@@ -57,6 +57,7 @@ class UserInterfaceTweaks : ConfigContainer() {
).apply {
set(mutableListOf("conversation_info", MessagingRuleType.STEALTH.key))
}
val autoCloseFriendFeedMenu = boolean("auto_close_friend_feed_menu")
val customizeUi = container("customize_ui", CustomizeUIConfig()) { addNotices(FeatureNotice.UNSTABLE); requireRestart() }
val friendFeedMessagePreview = container("friend_feed_message_preview", FriendFeedMessagePreview()) { requireRestart() }
val snapPreview = boolean("snap_preview") { addNotices(FeatureNotice.UNSTABLE); requireRestart() }