Hiding context menu when clearing queue

This commit is contained in:
James Barnsley
2018-05-09 17:31:38 +12:00
parent b47d66f641
commit d5108822a6
4 changed files with 4 additions and 4 deletions

View File

@ -149,7 +149,7 @@ class Queue extends React.Component{
<FontAwesome name="history" />&nbsp;
History
</button>
<button className="no-hover" onClick={e => this.props.mopidyActions.clearTracklist()}>
<button className="no-hover" onClick={e => {this.props.mopidyActions.clearTracklist(); this.props.uiActions.hideContextMenu();}}>
<FontAwesome name="trash" />&nbsp;
Clear
</button>