refactor: disable snap splitting

This commit is contained in:
rhunk 2023-05-26 14:46:34 +02:00
parent fff8221b7c
commit 651c69d22f
3 changed files with 5 additions and 5 deletions

View File

@ -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",

View File

@ -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
),

View File

@ -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)
}
}