feat: Set usage of custom emojis and stickers

This commit is contained in:
krille-chan 2025-11-20 18:55:19 +01:00
commit 18d69ae608
No known key found for this signature in database
3 changed files with 102 additions and 43 deletions

View file

@ -124,6 +124,15 @@ class EmotesSettingsController extends State<EmotesSettings> {
showSave = true;
});
void toggleUsage(String imageCode, ImagePackUsage usage) {
setState(() {
final usages =
pack!.images[imageCode]!.usage ??= List.from(ImagePackUsage.values);
if (!usages.remove(usage)) usages.add(usage);
showSave = true;
});
}
void submitImageAction(
String oldImageCode,
String imageCode,