Fix mount dropdown

This commit is contained in:
sgraves committed 2019-10-23 15:34:09 -05:00
1 parent 2bf158aaa3
commit 16622ba3e8
2 files changed
+4 -7

No files matched your search

+2 -1
View File
@@ -67,13 +67,14 @@ export default connect(mapStateToProps, mapDispatchToProps)(props => {
let inputControls = null;
if (props.Platform === 'win32') {
inputColumnSpan = 20;
const index = props.MState.DriveLetters.indexOf(props.PState.MountLocation);
inputControls = <DropDown changed={props.changed}
colSpan={inputColumnSpan}
disabled={!props.MState.AllowMount || props.MState.Mounted}
items={props.MState.DriveLetters}
row={secondRow}
rowSpan={7}
selected={props.MState.DriveLetters.indexOf(props.PState.MountLocation)}/>;
selected={index >= 0 ? props.PState.MountLocation : ''}/>;
} else {
inputColumnSpan = 64;