Eject on CDFS iconbar menu
Andrew Rawnsley (492) 1445 posts |
Someone appears to have cunningly designed the CDFS iconbar menu to fade the Eject option when the drive is empty. Unless I’m missing something obvious, there’s no real advantage to fading the Eject option ever, beyond it seeming |
Dave Higton (1515) 3534 posts |
Presumably you’re going to physically interact with the drive anyway, if you’re going to put a disc in? |
Chris Johnson (125) 825 posts |
I don’t understand this. I have just tried with Iyonix, PandaRO and ARMX6. All three have empty CD drives, yet the menu item for Eject is NOT faded, and choosing it does indeed open the empty drive. Am I missing something? All machines are on fairly recent RISC OS 5.23. |
Steve Pampling (1551) 8172 posts |
Ah, but if the guy that designed the case assumed you had a software eject button and hid the mechanical bits behind the fascia you can’t get it to open up to put a disc in. Of course all academic when Chris points out that his “just works” because it isn’t greyed out. |
Jeffrey Lee (213) 6048 posts |
The availability of the option isn’t based on whether the drive is empty; it’s based on whether CD_IsDrawerLocked says that the drawer is locked. If the drawer is locked (or the call returns an error) then it will grey out the option. I’m seeing some odd things with the ATAPI driver on my Iyonix – the option is permanently greyed out, despite the fact that the *Eject command works fine. Also trying to eject a locked drive results in a “CD-ROM drive empty” error rather than something more sensible (e.g. “drive locked” – although locking an empty drive, which is what I’d done, probably isn’t an expected behaviour). Anyway, this is definitely something that needs some more investigation. |
Jeffrey Lee (213) 6048 posts |
This should be fixed now. Looks like the CD drivers were simply using the wrong command for checking the drawer lock status (probably a symptom of the age of the original driver implementation). https://www.riscosopen.org/viewer/revisions/logs?ident=1518300359-342545.html |
Frederick Bambrough (1372) 837 posts |
Works nicely for my BB -xM (drive is an awkward skinny portable). What should the action be for adjust-click on the iconbar icon? Edit: Oh, the behaviour has changed when there is a disc in the drive. I’m sure adjust-click used to eject the drive. Now it re-mounts the disc. |