mirror of
https://github.com/captbaritone/webamp.git
synced 2026-01-23 18:25:30 +00:00
Fix dragging in files.
This commit is contained in:
parent
1e38da3f52
commit
082ae4f30a
1 changed files with 5 additions and 6 deletions
|
|
@ -52,7 +52,7 @@ export class MainWindow extends React.Component {
|
|||
this.supress(e);
|
||||
const { files } = e.dataTransfer;
|
||||
// TODO: Move this to an actionCreator
|
||||
this.props.dispatch(loadFileFromReference(files[0]));
|
||||
this.props.loadFileFromReference(files[0]);
|
||||
}
|
||||
|
||||
render() {
|
||||
|
|
@ -145,9 +145,8 @@ const mapStateToProps = state => {
|
|||
return { status, loading, doubled, shade, llama, working, focused };
|
||||
};
|
||||
|
||||
const mapDispatchToProps = dispatch => ({
|
||||
setFocus: () => {
|
||||
dispatch({ type: SET_FOCUSED_WINDOW, window: WINDOWS.MAIN });
|
||||
}
|
||||
});
|
||||
const mapDispatchToProps = {
|
||||
setFocus: () => ({ type: SET_FOCUSED_WINDOW, window: WINDOWS.MAIN }),
|
||||
loadFileFromReference
|
||||
};
|
||||
export default connect(mapStateToProps, mapDispatchToProps)(MainWindow);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue