diff options
author | Remco Burema <41987080+rburema@users.noreply.github.com> | 2020-02-11 11:51:31 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-02-11 11:51:31 +0300 |
commit | 97106b46dd746a4d22cf5de35f9cf1c4efa41965 (patch) | |
tree | d8f0b6be7cf68c6695efbb4d6afea1ce1bc565e9 | |
parent | 1bb9371d08373b23667494240b21364f41ad1fe0 (diff) | |
parent | c54c79d2db001fdbc1e6260d3fb23e18df3a154b (diff) |
Merge pull request #7088 from Ultimaker/CURA-7203_Fix_windows_save_to_removable_drive
Fix the "save to removable drive" not appearing
-rw-r--r-- | plugins/RemovableDriveOutputDevice/WindowsRemovableDrivePlugin.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/plugins/RemovableDriveOutputDevice/WindowsRemovableDrivePlugin.py b/plugins/RemovableDriveOutputDevice/WindowsRemovableDrivePlugin.py index c89bd31e21..8a183c25f4 100644 --- a/plugins/RemovableDriveOutputDevice/WindowsRemovableDrivePlugin.py +++ b/plugins/RemovableDriveOutputDevice/WindowsRemovableDrivePlugin.py @@ -47,7 +47,10 @@ class WindowsRemovableDrivePlugin(RemovableDrivePlugin.RemovableDrivePlugin): def checkRemovableDrives(self): drives = {} + # The currently available disk drives, e.g.: bitmask = ...1100 <-- ...DCBA bitmask = ctypes.windll.kernel32.GetLogicalDrives() + # Since we are ignoring drives A and B, the bitmask has has to shift twice to the right + bitmask >>= 2 # Check possible drive letters, from C to Z # Note: using ascii_uppercase because we do not want this to change with locale! # Skip A and B, since those drives are typically reserved for floppy disks. |