fix: "Pick an image" button in emote settings doesn't do anything

This commit is contained in:
Christian Pauly 2021-05-22 09:29:07 +02:00
parent 988a691eeb
commit 3b268dc53d

View file

@ -220,7 +220,7 @@ class _EmoteImagePickerState extends State<_EmoteImagePicker> {
Widget build(BuildContext context) {
if (widget.controller.text == null || widget.controller.text.isEmpty) {
return ElevatedButton(
onPressed: () async {},
onPressed: () => widget.onPressed(widget.controller),
child: Text(L10n.of(context).pickImage),
);
} else {