[Repertory release notification icon] [Prevent release change when mount is busy] [Initial loading animation]

This commit is contained in:
Scott E. Graves
2018-09-26 02:20:11 -05:00
parent 762a7ec6e3
commit 0f12f7e33a
8 changed files with 119 additions and 57 deletions

View File

@@ -35,6 +35,8 @@ class MountItems extends Component {
Sia: sia,
});
this.props.mountsBusy(hs.Mounted || sia.Mounted);
let hsLocation = arg.data.Locations.Hyperspace;
if ((hsLocation.length === 0) && (this.props.platform === 'win32')) {
hsLocation = this.props.hyperspace.MountLocation || arg.data.DriveLetters.Hyperspace[0];
@@ -92,6 +94,7 @@ class MountItems extends Component {
};
detectMounts = ()=> {
this.props.mountsBusy(true);
ipcRenderer.send('detect_mounts', {
Directory: this.props.directory,
Version: this.props.version,
@@ -117,6 +120,8 @@ class MountItems extends Component {
[storageType]: state,
});
this.props.mountsBusy(true);
if (mount) {
ipcRenderer.send('mount_drive', {
Directory: this.props.directory,