Disk image stays attached to drive when drive is disabled
Versatile Commodore Emulator
Brought to you by:
blackystardust,
gpz
Sorry to put this on you Michael, but, I came across this bug through the error message of a disk not being able to be used in 2 different drives.
The problem is that the disk image stays attached to the drive even when the drive is disabled, making it impossible to be used in a different drive, worse even is that this most likely gets saves when saving the settings making the disk image unusable since a non-existent drive automatically 'holds it open'.
IMHO when disabling a drive it should detach any disk images that are attached to it to both make sure the disk image does not suffer data-loss and to prevent this situation.
This is more general than that; changing the drive type to something image-incompatible (like 1541 to 1581) also doesn't detach any images and commands like LOAD "$",8 will start misbehaving.
I think we should detach on any drive type change.
I agree, imo detaching the disk image on any kind of drive type change would be good (make sense).