diff --git a/sky/sdk/example/stocks/lib/stock_menu.dart b/sky/sdk/example/stocks/lib/stock_menu.dart index 9cb7a09363117d3755cefe059cda905489cf7ee4..ef34d40fd3a1b916b35e6077e1c31fdf65039032 100644 --- a/sky/sdk/example/stocks/lib/stock_menu.dart +++ b/sky/sdk/example/stocks/lib/stock_menu.dart @@ -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,