Visualizer was looking for shade in all the wrong places

This commit is contained in:
Jordan Eldredge 2018-05-15 06:47:34 -07:00
parent 3a4e5c146c
commit 3418e159db

View file

@ -2,6 +2,7 @@ import React from "react";
import { connect } from "react-redux";
import { toggleVisualizerStyle } from "../../actionCreators";
import { getWindowShade } from "../../selectors";
const OSCILLOSCOPE = 1;
const BAR = 2;
@ -239,10 +240,10 @@ class Visualizer extends React.Component {
const mapStateToProps = state => ({
colors: state.display.skinColors,
style: state.display.visualizerStyle,
width: state.display.mainShade ? 38 : 76,
height: state.display.mainShade ? 5 : 16,
width: getWindowShade(state, "main") ? 38 : 76,
height: getWindowShade(state, "main") ? 5 : 16,
status: state.media.status,
spekles: !state.display.mainShade
spekles: !getWindowShade(state, "main")
});
const mapDispatchToProps = {