Menu

#384 Little changes around disk ui

future
open
disk (4)
5
2017-02-08
2017-01-21
No

menu.c:
- menu_disk_detail(): add some new "detail text" (inserted, inserted WP, etc) to indicate "dirty", changed disk
disk.c:
- disk_new(): mark new disks as dirty
uimedia.c:
- drive_save() and ui_media_drive_save(): remove two unnecessary check which prevent to save disk image second (third, etc..) time
- drive_disk_write(): check if file exists, and ask user about overwrite

1 Attachments

Discussion

  • Gergely Szasz

    Gergely Szasz - 2017-01-22

    Here is a new, bigger patch:
    as previous plus:
    - add a "new" ui_confirm_save_specific() dialog - without [Cancel] button
    - if there is no meaning of 'cancel' - uses this: Save/Don't save query
    - add "overwrite query" to "tape" and "microdrive" code.

     
  • Fredrick Meunier

    • assigned_to: Fredrick Meunier
     
  • Fredrick Meunier

    Hi Gergely,
    I have been delayed by looking at the release but I expect to get to merging more of this during the week.

    Thanks,
    Fred

     

    Last edit: Fredrick Meunier 2017-02-05
    • Gergely Szasz

      Gergely Szasz - 2017-02-06

      Thanks!
      I can't test the Win32 UI, but its looks so straightforward...

       
  • Fredrick Meunier

    Thanks for the patch, I started looking at the 'add "overwrite query" to "tape" and "microdrive" code' part of the patch and I've tweaked it a bit so far like the attached.

    So far I've noticed:

    • tape_close() now checks the return code from ui_tape_write() is 1 before returning error in the UI_CONFIRM_SAVE_SAVE case but ui_tape_write() is only returns 0 or 1 and doesn't return state from tape_write() if that is wanted?
    • ui_confirm_save() will say not to save if the confirm actions option is off - confirming turned off on an overwrite check should probably mean overwrite instead
     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.