fix: update extension monitors after locale change
This commit is contained in:
1 parent
68b45e38a3
commit
2916d9c1a8
1 file changed
+3
@@ -250,6 +250,7 @@ Monitor.propTypes = {
|
||||
resizeMonitorRect: PropTypes.func.isRequired,
|
||||
spriteName: PropTypes.string, // eslint-disable-line react/no-unused-prop-types
|
||||
targetId: PropTypes.string,
|
||||
toolboxXML: PropTypes.string, // eslint-disable-line react/no-unused-prop-types
|
||||
value: PropTypes.oneOfType([
|
||||
PropTypes.string,
|
||||
PropTypes.number,
|
||||
@@ -265,6 +266,8 @@ Monitor.propTypes = {
|
||||
};
|
||||
const mapStateToProps = state => ({
|
||||
monitorLayout: state.scratchGui.monitorLayout,
|
||||
// render on toolbox updates since changes to the blocks could affect monitor labels, i.e. updated locale
|
||||
toolboxXML: state.scratchGui.toolbox.toolboxXML,
|
||||
vm: state.scratchGui.vm
|
||||
});
|
||||
const mapDispatchToProps = dispatch => ({
|
||||
|
||||
Reference in new issue
Block a user