mirror of
https://github.com/bggRGjQaUbCoE/PiliPlus.git
synced 2026-05-30 23:58:13 +08:00
fix: zanbtn state
Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
@@ -47,7 +47,9 @@ class _ZanButtonGrpcState extends State<ZanButtonGrpc> {
|
|||||||
} else {
|
} else {
|
||||||
widget.replyItem.replyControl.action = $fixnum.Int64.ZERO;
|
widget.replyItem.replyControl.action = $fixnum.Int64.ZERO;
|
||||||
}
|
}
|
||||||
setState(() {});
|
if (mounted) {
|
||||||
|
setState(() {});
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
SmartDialog.showToast(res['msg']);
|
SmartDialog.showToast(res['msg']);
|
||||||
}
|
}
|
||||||
@@ -75,7 +77,9 @@ class _ZanButtonGrpcState extends State<ZanButtonGrpc> {
|
|||||||
widget.replyItem.like -= $fixnum.Int64.ONE;
|
widget.replyItem.like -= $fixnum.Int64.ONE;
|
||||||
widget.replyItem.replyControl.action = $fixnum.Int64.ZERO;
|
widget.replyItem.replyControl.action = $fixnum.Int64.ZERO;
|
||||||
}
|
}
|
||||||
setState(() {});
|
if (mounted) {
|
||||||
|
setState(() {});
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
SmartDialog.showToast(res['msg']);
|
SmartDialog.showToast(res['msg']);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user