Commit f9697a5c authored by Collin Jackson's avatar Collin Jackson

Fix issue #34 Clicking on "Autorefresh" menu item does not click checkbox

parent fd744a12
......@@ -39,7 +39,10 @@ class StockMenu extends Component {
items: [
new PopupMenuItem(child: new Text('Add stock')),
new PopupMenuItem(child: new Text('Remove stock')),
new PopupMenuItem(child: new Flex([new Flexible(child: new Text('Autorefresh')), checkbox])),
new PopupMenuItem(
onPressed: () => onAutorefreshChanged(!autorefresh),
child: new Flex([new Flexible(child: new Text('Autorefresh')), checkbox])
),
],
level: 4,
showing: showing,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment