mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 991977 - Ensure volume is mounted before starting download. r=dhylands
This commit is contained in:
parent
014fa4c392
commit
96648b485e
@ -284,10 +284,7 @@ this.DownloadIntegration = {
|
||||
// Now get the path for this storage area.
|
||||
if (preferredStorageName) {
|
||||
let volume = volumeService.getVolumeByName(preferredStorageName);
|
||||
if (volume &&
|
||||
volume.isMediaPresent &&
|
||||
!volume.isMountLocked &&
|
||||
!volume.isSharing) {
|
||||
if (volume && volume.state === Ci.nsIVolume.STATE_MOUNTED){
|
||||
directoryPath = OS.Path.join(volume.mountPoint, "downloads");
|
||||
yield OS.File.makeDir(directoryPath, { ignoreExisting: true });
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user