mirror of
https://github.com/LBRYFoundation/lbry-desktop.git
synced 2025-08-23 17:47:24 +00:00
Add back Linux check for close button
This commit is contained in:
parent
cce187ad62
commit
8ec07a42a6
1 changed files with 4 additions and 3 deletions
|
@ -252,7 +252,6 @@ var mainMenuStyle = {
|
||||||
};
|
};
|
||||||
|
|
||||||
var MainMenu = React.createClass({
|
var MainMenu = React.createClass({
|
||||||
_showClose: /linux/i.test(navigator.userAgent), // @TODO: find a way to use getVersionInfo() here without messy state management
|
|
||||||
propTypes: {
|
propTypes: {
|
||||||
show: React.PropTypes.bool,
|
show: React.PropTypes.bool,
|
||||||
},
|
},
|
||||||
|
@ -262,13 +261,15 @@ var MainMenu = React.createClass({
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
render: function() {
|
render: function() {
|
||||||
|
var isLinux = /linux/i.test(navigator.userAgent); // @TODO: find a way to use getVersionInfo() here without messy state management
|
||||||
return (
|
return (
|
||||||
<div style={mainMenuStyle} className={this.props.show ? '' : 'hidden'}>
|
<div style={mainMenuStyle} className={this.props.show ? '' : 'hidden'}>
|
||||||
<Link href='/?files' label="My Files" icon='icon-cloud-download' style={mainMenuItemStyle}/>
|
<Link href='/?files' label="My Files" icon='icon-cloud-download' style={mainMenuItemStyle}/>
|
||||||
<Link href='/?settings' label="Settings" icon='icon-gear' style={mainMenuItemStyle}/>
|
<Link href='/?settings' label="Settings" icon='icon-gear' style={mainMenuItemStyle}/>
|
||||||
<Link href='/?help' label="Help" icon='icon-question-circle' style={mainMenuItemStyle}/>
|
<Link href='/?help' label="Help" icon='icon-question-circle' style={mainMenuItemStyle}/>
|
||||||
<Link href="/?start" label="Exit LBRY" icon="icon-close"
|
{isLinux ? <Link href="/?start" label="Exit LBRY" icon="icon-close"
|
||||||
hidden={!this.props.show} style={mainMenuItemStyle} />
|
hidden={!this.props.show} style={mainMenuItemStyle} />
|
||||||
|
: null}
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue