mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-03 19:03:30 +07:00
[PR #4452] [CLOSED] [GUI] Open the window maximized the first time, and where it was left after that #5052
Labels
No labels
needs-format
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Niko1221/Strata#5052
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/Niko1221/Strata/pull/4452
Author: @xvcezrqpbxtpzblrt
Created: 10/28/2026
Status: ❌ Closed
Base:
main← Head:desktop/window-state-027📝 Commits (2)
557e09f[GUI] Show the window when the page has painted, not while it is still blanke43914c[GUI] Open the window maximized the first time, and where it was left after that📊 Changes
4 files changed (+247 additions, -10 deletions)
View changed files
📝
apps/desktop/src-tauri/src/desktoplog.rs(+2 -1)📝
apps/desktop/src-tauri/src/main.rs(+174 -7)📝
apps/desktop/src-tauri/tauri.conf.json(+19 -1)📝
apps/host/src/main.tsx(+52 -1)📄 Description
## Problem
The window was created at a fixed 1440x920 in the top-left corner and never remembered being maximized. On a 2560x1440 screen that is 38% of the width: every start meant maximizing by hand, and the conversation sat in a corner with the rest of the screen empty.
Result
0.2.0and failed on every run since the version moved to 0.2.7. It now asks for the crate's own version, so the next bump does not break it again.Validation
cargo test --release→ 26 pass, 0 fail, including the newthe_window_reopens_where_it_was_left_and_maximized_on_the_first_run(first run, left un-maximized, an unusable size and place, a damaged file).IsZoomed = trueand a 2576x1408 outer rect;%LOCALAPPDATA%\Strata\window.jsonreads{"maximized": true, ...}.Note
Based on #4438 (the window is shown after the first paint); that one should merge first. The crash-test line is a test-only fix in the same crate, found while running the suite.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.