Only show snapshot button when apps are maximised.

This commit is contained in:
Richard Lewis 2017-12-19 17:16:38 +00:00
parent 08bcfc5c4e
commit baf472b4a3

View file

@ -484,8 +484,8 @@ export default React.createClass({
deleteClasses += ' mx_AppTileMenuBarWidgetDelete';
}
// Picture snapshot
const showPictureSnapshotButton = this._hasCapability('screenshot');
// Picture snapshot - only show button when apps are maximised.
const showPictureSnapshotButton = this._hasCapability('screenshot') && this.props.show;
const showPictureSnapshotIcon = 'img/camera_green.svg';
const windowStateIcon = (this.props.show ? 'img/minimize.svg' : 'img/maximize.svg');