Skip to content

fix(desktop): save Markdown from the Download button with a native Save dialog (#6) - #8

Merged
AbdoslamB merged 1 commit into
mainfrom
fix/issue-6-download-and-save-location
Oct 14, 2026
Merged

AbdoslamB merged 1 commit into
mainfrom
fix/issue-6-download-and-save-location

Conversation

@AbdoslamB

Copy link
Copy Markdown
Owner

Problem

In the desktop app, Download showed "Downloaded X.md" but wrote nothing. pywebview cancels in-page downloads by default (silently on WebView2), and on macOS it cannot read blob: URLs at all.

Fix

  • In the desktop window, Download now opens the system Save dialog (starting in Downloads) and writes the file the user confirms.
  • The message reports what actually happened: saved (with the path), cancelled (nothing), or an error.
  • Only InkDoc's own page can save; a foreign page opened from a document link cannot.
  • The browser (Web Bench) download is unchanged.

Tests

  • New: tests/test_desktop_save.py, tests/desktop_download_ui.test.js (added to CI).
  • Full suite passes on Windows (Python 3.14) and Linux (Docker, Python 3.11).
  • Manual check of the real Save dialog on Windows, macOS and Linux: pending.

Fixes #6

…ve dialog (#6)

pywebview cancels <a download> in the desktop window (silently on WebView2; macOS cannot read blob: URLs), so Download did nothing while the toast said it had. The desktop app now saves through a native Save dialog that opens in Downloads, and the toast reports only a real save. The browser (Web Bench) download is unchanged.
@AbdoslamB AbdoslamB linked an issue Oct 14, 2026 that may be closed by this pull request
@AbdoslamB
AbdoslamB merged commit 3034f77 into main Oct 14, 2026
3 checks passed
@AbdoslamB
AbdoslamB deleted the fix/issue-6-download-and-save-location branch October 14, 2026 05:28
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.

Download button not downloading converted file

1 participant