Skip to content

Claude/Fix bug - #1

Merged
stevenchenUCD merged 5 commits into
developfrom
claude/scan-project-011CUx3rfp8ZPjuF8R7KMzJi
Nov 9, 2025
Merged

stevenchenUCD merged 5 commits into
developfrom
claude/scan-project-011CUx3rfp8ZPjuF8R7KMzJi

Conversation

@stevenchenUCD

Copy link
Copy Markdown
Owner
Q A
Bug fix? yes/no
New feature? yes/no
Breaking changes? yes/no
Deprecations? yes/no
New tests added? yes/not needed
Fixed tickets Fixes #ticket number (set to none if no tickets are fixed, repeat template for each ticket fixed)
License MIT

Description

[Description of the bug or feature]

This commit fixes issue #1 where the editor would incorrectly prompt to save
files upon closing, even when no local modifications were made.

Problem:
- When a file was externally modified on disk, the code unconditionally set
  isSaved = false, causing the "unsaved changes" prompt even for unmodified files

Solution:
- Distinguish between "file already saved" and "file has local changes" states
- If file is saved: silently load external changes with info notification
- If file has unsaved changes: prompt user whether to reload

Also added:
- USAGE_GUIDE_CN.md: Chinese usage guide documenting that multi-window and
  PDF export features already exist in the application

Changes:
- src/renderer/store/editor.js (lines 1169-1195): Fixed file change handling logic
- USAGE_GUIDE_CN.md: New documentation file
Added MAC_BUILD_GUIDE_CN.md with detailed instructions for building and
packaging MarkText on macOS, including:
- Prerequisites and system requirements
- Step-by-step build instructions
- Development mode setup
- Troubleshooting common issues
- Advanced build options
- Output file descriptions

This guide helps users build DMG and ZIP packages for both Intel (x64)
and Apple Silicon (arm64) architectures.
Added INSTALL_FROM_REPO_CN.md with multiple installation methods:
- Automatic build via GitHub Actions (release-v* branches)
- Homebrew Cask installation
- Direct download from GitHub Releases
- One-click install scripts
- CI/CD automation setup

This guide helps users install MarkText without manual building by
leveraging the existing GitHub Actions workflows.
Modified release.yml to trigger automatic builds for branches starting
with 'claude/', in addition to 'release-v*' branches. This allows the
release workflow to run on feature branches for testing and distribution.
Added comprehensive documentation:
- HOMEBREW_INSTALL_CN.md: Complete guide for installing via Homebrew,
  including methods to override official cask and create custom tap
- DOWNLOAD_CN.md: Full download page with all platform download links,
  installation instructions, and file checksums
- README_FIXES.md: Summary of fixes and quick start guide

These docs help users easily install the fixed version via multiple methods.
@stevenchenUCD stevenchenUCD changed the title Claude/scan project 011 c ux3rfp8 z pju f8 r7 k mz ji Claude/Fix bug Nov 9, 2025

@stevenchenUCD stevenchenUCD left a comment

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

try to fix the bug

@stevenchenUCD
stevenchenUCD merged commit 8b4d5e0 into develop Nov 9, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants