Minor fixes

This commit is contained in:
2020-08-15 15:07:32 -05:00
parent 27aa0ae8dc
commit 25e689b033
4 changed files with 7 additions and 8 deletions

View File

@@ -34,7 +34,6 @@ import {
import YesNo from './components/YesNo/YesNo'; import YesNo from './components/YesNo/YesNo';
import {createModalConditionally} from './utils'; import {createModalConditionally} from './utils';
import SkynetImport from './containers/SkynetImport/SkynetImport'; import SkynetImport from './containers/SkynetImport/SkynetImport';
import {displaySkynetImport} from './redux/actions/skynet_actions';
import ApplicationBusy from './components/ApplicationBusy/ApplicationBusy'; import ApplicationBusy from './components/ApplicationBusy/ApplicationBusy';
import SkynetExport from './containers/SkynetExport/SkynetExport'; import SkynetExport from './containers/SkynetExport/SkynetExport';
@@ -112,7 +111,7 @@ class App extends IPCContainer {
let s3Supported = this.props.LocationsLookup[selectedVersion] && let s3Supported = this.props.LocationsLookup[selectedVersion] &&
this.props.LocationsLookup[selectedVersion].s3_support; this.props.LocationsLookup[selectedVersion].s3_support;
//s3Supported = true; s3Supported = true;
const skynetSupported = this.props.LocationsLookup[selectedVersion] && const skynetSupported = this.props.LocationsLookup[selectedVersion] &&
this.props.LocationsLookup[selectedVersion].skynet_support; this.props.LocationsLookup[selectedVersion].skynet_support;
@@ -323,7 +322,7 @@ const mapDispatchToProps = dispatch => {
loadReleases: () => dispatch(loadReleases()), loadReleases: () => dispatch(loadReleases()),
notifyError: (msg, critical, callback) => dispatch(notifyError(msg, critical, callback)), notifyError: (msg, critical, callback) => dispatch(notifyError(msg, critical, callback)),
saveState: () => dispatch(saveState()), saveState: () => dispatch(saveState()),
setDismissNewReleasesAvailable: dismiss => dispatch(setDismissNewReleasesAvailable), setDismissNewReleasesAvailable: dismiss => dispatch(setDismissNewReleasesAvailable(dismiss)),
setNewReleasesAvailable: items => dispatch(setNewReleasesAvailable(items)), setNewReleasesAvailable: items => dispatch(setNewReleasesAvailable(items)),
setDismissUIUpgrade: dismiss => dispatch(setDismissUIUpgrade(dismiss)), setDismissUIUpgrade: dismiss => dispatch(setDismissUIUpgrade(dismiss)),
}; };

View File

@@ -155,7 +155,7 @@ export const installDependency = (source, url, isWinFSP) => {
export const installAndTestRelease = (source, version, appPlatform) => { export const installAndTestRelease = (source, version, appPlatform) => {
return (dispatch, getState) => { return (dispatch, getState) => {
if (ipcRenderer && getState().install.InstallTestActive) { if (ipcRenderer && getState().install.InstallTestActive) {
const extractReleaseComplete = (event, arg) => { const extractReleaseComplete = () => {
ipcRenderer.send(Constants.IPC_Delete_File, { ipcRenderer.send(Constants.IPC_Delete_File, {
FilePath: source, FilePath: source,
}); });

View File

@@ -158,7 +158,7 @@ export const setProviderState = (provider, state) => {
}; };
export const unmountAll = completedCallback => { export const unmountAll = completedCallback => {
return (dispatch, getState) => { return dispatch => {
const ipcRenderer = getIPCRenderer(); const ipcRenderer = getIPCRenderer();
const unmountedCallback = () => { const unmountedCallback = () => {
dispatch(resetMountsState()); dispatch(resetMountsState());

View File

@@ -53,8 +53,8 @@ const unmountAllDrives = () => {
} }
// Unmount all items // Unmount all items
for (const i in mountedLocations) { for (const mountLocation of mountedLocations) {
const data = mountedData[mountedLocations[i]]; const data = mountedData[mountLocation];
helpers.stopMountProcessSync(data.Version, data.Provider, data.Remote, data.S3); helpers.stopMountProcessSync(data.Version, data.Provider, data.Remote, data.S3);
} }
@@ -252,7 +252,7 @@ const addListeners = (ipcMain, {setTrayImage, standardIPCReply}) => {
} }
}); });
ipcMain.on(Constants.IPC_Unmount_All_Drives, (event, data) => { ipcMain.on(Constants.IPC_Unmount_All_Drives, event => {
unmountAllDrives(); unmountAllDrives();
standardIPCReply(event, Constants.IPC_Unmount_All_Drives_Reply); standardIPCReply(event, Constants.IPC_Unmount_All_Drives_Reply);
}); });