diff --git a/src/containers/MountItems/MountItems.js b/src/containers/MountItems/MountItems.js index 9ac9228..9734632 100644 --- a/src/containers/MountItems/MountItems.js +++ b/src/containers/MountItems/MountItems.js @@ -227,6 +227,15 @@ class MountItems extends IPCContainer { ]; }; + hasActiveMount = () => { + for (const provider of Object.keys(this.props.MountState)) { + if (this.props.MountState[provider].Mounted) + return true; + } + + return false; + }; + onDetectMountReply = (event, arg) => { const provider = arg.data.Provider; if (!this.state.RetryItems[provider]) { @@ -268,7 +277,7 @@ class MountItems extends IPCContainer { if (idx > -1) { this.activeDetections.splice(idx, 1); } - this.props.setMountsBusy(this.activeDetections.length > 0); + this.props.setMountsBusy((this.activeDetections.length > 0) || this.hasActiveMount()); }; updateMountLocation = (provider, location, mounted, driveLetters) => {