mirror of
https://github.com/captbaritone/webamp.git
synced 2026-07-20 16:49:52 +00:00
Autoplay tracks that are dropped on the main window
This commit is contained in:
parent
8a4a594dd0
commit
f8167dd322
1 changed files with 3 additions and 2 deletions
|
|
@ -1,7 +1,7 @@
|
|||
import React from "react";
|
||||
import { connect } from "react-redux";
|
||||
import classnames from "classnames";
|
||||
import { WINDOWS, MEDIA_STATUS } from "../../constants";
|
||||
import { WINDOWS, MEDIA_STATUS, LOAD_STYLE } from "../../constants";
|
||||
import {
|
||||
loadFilesFromReferences,
|
||||
toggleMainWindowShadeMode,
|
||||
|
|
@ -189,7 +189,8 @@ const mapDispatchToProps = (dispatch: Dispatch): DispatchProps => {
|
|||
toggleMainWindowShadeMode: () => dispatch(toggleMainWindowShadeMode()),
|
||||
scrollVolume: (e: React.WheelEvent<HTMLDivElement>) =>
|
||||
dispatch(scrollVolume(e)),
|
||||
loadMedia: (e: React.DragEvent<HTMLDivElement>) => dispatch(loadMedia(e)),
|
||||
loadMedia: (e: React.DragEvent<HTMLDivElement>) =>
|
||||
dispatch(loadMedia(e, LOAD_STYLE.PLAY)),
|
||||
};
|
||||
};
|
||||
export default connect(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue