fix(console): add check to avoid blink daemon
This commit is contained in:
parent
1ba67a866f
commit
191d5c9ecc
|
@ -72,7 +72,9 @@ class Component extends PureComponent<Props, State> {
|
||||||
|
|
||||||
componentDidMount() {
|
componentDidMount() {
|
||||||
ipcRenderer.on('zcashd-log', (event: empty, message: string) => {
|
ipcRenderer.on('zcashd-log', (event: empty, message: string) => {
|
||||||
|
if (message.indexOf('Downloading') !== -1) {
|
||||||
this.setState(() => ({ log: initialLog + message }));
|
this.setState(() => ({ log: initialLog + message }));
|
||||||
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -84,9 +86,7 @@ class Component extends PureComponent<Props, State> {
|
||||||
const { log } = this.state;
|
const { log } = this.state;
|
||||||
const { theme } = this.props;
|
const { theme } = this.props;
|
||||||
|
|
||||||
const ConsoleSymbol = theme.mode === DARK
|
const ConsoleSymbol = theme.mode === DARK ? ConsoleSymbolDark : ConsoleSymbolLight;
|
||||||
? ConsoleSymbolDark
|
|
||||||
: ConsoleSymbolLight;
|
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<Wrapper id='console-wrapper'>
|
<Wrapper id='console-wrapper'>
|
||||||
|
|
Loading…
Reference in New Issue