mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-06-04 11:14:21 +08:00
Fix the "save to removable drive" not appearing
CURA-7203
This commit is contained in:
parent
1bb9371d08
commit
c54c79d2db
@ -47,7 +47,10 @@ class WindowsRemovableDrivePlugin(RemovableDrivePlugin.RemovableDrivePlugin):
|
|||||||
def checkRemovableDrives(self):
|
def checkRemovableDrives(self):
|
||||||
drives = {}
|
drives = {}
|
||||||
|
|
||||||
|
# The currently available disk drives, e.g.: bitmask = ...1100 <-- ...DCBA
|
||||||
bitmask = ctypes.windll.kernel32.GetLogicalDrives()
|
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
|
# Check possible drive letters, from C to Z
|
||||||
# Note: using ascii_uppercase because we do not want this to change with locale!
|
# 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.
|
# Skip A and B, since those drives are typically reserved for floppy disks.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user