feat: Edit displayname and attribution for sticker packs

This commit is contained in:
krille-chan 2025-11-20 20:55:36 +01:00
commit 489402be91
No known key found for this signature in database
2 changed files with 27 additions and 2 deletions

View file

@ -171,6 +171,28 @@ class EmotesSettingsController extends State<EmotesSettings> {
});
}
void submitDisplaynameAction() {
if (readonly) return;
packDisplayNameController.text = packDisplayNameController.text.trim();
final input = packDisplayNameController.text;
setState(() {
pack!.pack.displayName = input;
showSave = true;
});
}
void submitAttributionAction() {
if (readonly) return;
packAttributionController.text = packAttributionController.text.trim();
final input = packAttributionController.text;
setState(() {
pack!.pack.attribution = input;
showSave = true;
});
}
void submitImageAction(
String oldImageCode,
ImagePackImageContent image,