mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-16 17:25:56 +08:00
Merge branch 'master' of https://github.com/Ultimaker/Cura
This commit is contained in:
commit
938ac7a08b
@ -65,11 +65,11 @@ class WindowsRemovableDrivePlugin(RemovableDrivePlugin.RemovableDrivePlugin):
|
|||||||
continue
|
continue
|
||||||
|
|
||||||
# Check for the free space. Some card readers show up as a drive with 0 space free when there is no card inserted.
|
# Check for the free space. Some card readers show up as a drive with 0 space free when there is no card inserted.
|
||||||
freeBytes = ctypes.c_longlong(0)
|
free_bytes = ctypes.c_longlong(0)
|
||||||
if windll.kernel32.GetDiskFreeSpaceExA(drive.encode("ascii"), ctypes.byref(freeBytes), None, None) == 0:
|
if windll.kernel32.GetDiskFreeSpaceExA(drive.encode("ascii"), ctypes.byref(free_bytes), None, None) == 0:
|
||||||
continue
|
continue
|
||||||
|
|
||||||
if freeBytes.value < 1:
|
if free_bytes.value < 1:
|
||||||
continue
|
continue
|
||||||
|
|
||||||
drives[drive] = "{0} ({1}:)".format(volume_name, letter)
|
drives[drive] = "{0} ({1}:)".format(volume_name, letter)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user