Skip to content

P0-01: Prompt to save unsaved changes on close/quit #8

@hybridmachine

Description

@hybridmachine

Description

Check SCI_GETMODIFY in windowShouldClose: and applicationShouldTerminate:. Present Save/Don't Save/Cancel alert for each dirty buffer.

Implementation

  • In windowShouldClose:, iterate all tabs and check SCI_GETMODIFY for each buffer
  • Show NSAlert with Save/Don't Save/Cancel buttons for each dirty document
  • Cancel aborts close; Don't Save discards; Save triggers save flow
  • In applicationShouldTerminate:, same logic but for app quit
  • Handle split view buffers (check both views)

Key Files

  • macos/platform/main_phase7.mm

Sprint

Sprint 1 - Data Safety

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    Status

    Done

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions