Skip to content

P0-10: Tab bar shows modified indicator #11

@hybridmachine

Description

@hybridmachine

Description

Show a visual indicator on tabs with unsaved changes. Set NSWindow document edited state.

Implementation

  • Handle SCN_SAVEPOINTLEFT notification → mark document as modified
  • Handle SCN_SAVEPOINTREACHED notification → mark document as saved
  • Prefix tab title with bullet character (or dot) for modified documents
  • Call setDocumentEdited:YES/NO on NSWindow for proper macOS integration
  • Update indicator on save, undo back to save point, and new changes
  • Track modified state in DocumentData struct

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