feat: persist fill/fit view mode in window.json (v1.5.0)
Build & Release / build-linux (push) Has been cancelled
Build & Release / build-windows (push) Has been cancelled
Build & Release / create-release (push) Has been cancelled

The double-click fill/fit mode was hardcoded (image_canvas: _isFilled = true) and
reset on every image change, so it never survived a restart. It is now stored as
"filled" in window.json and restored on launch and on image switch.

WindowPersistence.saveSync() now merges with the existing file, otherwise the
startup/move/resize geometry writes would drop the mode key.

Also: version 1.5.0, CHANGELOG entry, dist/ ships imajviewer_1.5.0_amd64.deb
(replaces 1.4.2).
This commit is contained in:
Alhan committed 2026-10-12 22:33:43 +03:00
1 parent b3bd540549
commit 2cd9e6c357
6 files changed
+50 -11

No files matched your search

+6
View File
@@ -4,6 +4,12 @@ All notable changes to imajViewer are documented in this file.
## [Unreleased]
## [1.5.0] - 2026-10-12
### Added
- Fill/fit mode (double-click) is now persisted in `window.json` and restored on the next launch
and when switching images, instead of always resetting to fill.
## [1.4.2] - 2026-10-12
### Fixed