mirror of
https://github.com/finos/SymphonyElectron.git
synced 2025-02-25 18:55:29 -06:00
This reverts commit 92f13bfa61
.
This commit is contained in:
parent
7f5c20a6a8
commit
4832c906d1
@ -13,7 +13,6 @@ const TITLE_BAR_NAMESPACE = 'TitleBar';
|
|||||||
|
|
||||||
export default class WindowsTitleBar extends React.Component<{}, IState> {
|
export default class WindowsTitleBar extends React.Component<{}, IState> {
|
||||||
private readonly window: Electron.BrowserWindow;
|
private readonly window: Electron.BrowserWindow;
|
||||||
private readonly title: string;
|
|
||||||
private readonly eventHandlers = {
|
private readonly eventHandlers = {
|
||||||
onClose: () => this.close(),
|
onClose: () => this.close(),
|
||||||
onMaximize: () => this.maximize(),
|
onMaximize: () => this.maximize(),
|
||||||
@ -25,7 +24,6 @@ export default class WindowsTitleBar extends React.Component<{}, IState> {
|
|||||||
constructor(props) {
|
constructor(props) {
|
||||||
super(props);
|
super(props);
|
||||||
this.window = remote.getCurrentWindow();
|
this.window = remote.getCurrentWindow();
|
||||||
this.title = document.title || 'Symphony';
|
|
||||||
this.state = {
|
this.state = {
|
||||||
isFullScreen: this.window.isFullScreen(),
|
isFullScreen: this.window.isFullScreen(),
|
||||||
isMaximized: this.window.isMaximized(),
|
isMaximized: this.window.isMaximized(),
|
||||||
@ -79,7 +77,7 @@ export default class WindowsTitleBar extends React.Component<{}, IState> {
|
|||||||
</div>
|
</div>
|
||||||
<div className='title-container'>
|
<div className='title-container'>
|
||||||
{this.getSymphonyLogo()}
|
{this.getSymphonyLogo()}
|
||||||
<p id='title-bar-title'>{this.title}</p>
|
<p id='title-bar-title'>{document.title || 'Symphony'}</p>
|
||||||
</div>
|
</div>
|
||||||
<div className='title-bar-button-container'>
|
<div className='title-bar-button-container'>
|
||||||
<button
|
<button
|
||||||
|
Loading…
Reference in New Issue
Block a user