mirror of
https://github.com/rhunk/SnapEnhance.git
synced 2025-05-02 23:44:29 +02:00
refactor: disable snap splitting
This commit is contained in:
parent
fff8221b7c
commit
651c69d22f
@ -43,7 +43,7 @@
|
||||
"remove_stickers_button": "Remove Stickers Button",
|
||||
"remove_cognac_button": "Remove Cognac Button",
|
||||
"remove_call_buttons": "Remove Call Buttons",
|
||||
"long_snap_sending": "Long Snap Sending",
|
||||
"disable_snap_splitting": "Disable Snap Splitting",
|
||||
"block_ads": "Block Ads",
|
||||
"streak_expiration_info": "Show Streak Expiration Info",
|
||||
"new_map_ui": "New Map UI",
|
||||
|
@ -149,9 +149,9 @@ enum class ConfigProperty(
|
||||
ConfigCategory.TWEAKS,
|
||||
false
|
||||
),
|
||||
LONG_SNAP_SENDING(
|
||||
"property.long_snap_sending",
|
||||
"description.long_snap_sending",
|
||||
DISABLE_SNAP_SPLITTING(
|
||||
"property.disable_snap_splitting",
|
||||
"description.disable_snap_splitting",
|
||||
ConfigCategory.TWEAKS,
|
||||
false
|
||||
),
|
||||
|
@ -42,7 +42,7 @@ class ConfigEnumKeys : Feature("Config enum keys", loadParams = FeatureLoadParam
|
||||
|
||||
hookAllEnums(context.mappings.getMappedClass("enums", "ARROYO")) { key, set ->
|
||||
if (key == "ENABLE_LONG_SNAP_SENDING") {
|
||||
if (context.config.bool(ConfigProperty.LONG_SNAP_SENDING)) set(true)
|
||||
if (context.config.bool(ConfigProperty.DISABLE_SNAP_SPLITTING)) set(true)
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user