eframe's `App::persist_egui_memory` doesn't seems to work
- Dominant language
- Rust
- Stars
- 30.6k
- Forks
- 2.1k
- Avg merge
- 1d 9h
- Merged PRs (30d)
- 72
Description
**Describe the bug**
i'm trying to use `App::persist_egui_memory` to control if app remembers window position, but it doesn't seems to work. i've tried latest version from crates.io and git main branch.
**To Reproduce**
Steps to reproduce the behavior:
1. Added this code
```rust
impl eframe::App for MyApp {
...
fn persist_egui_memory(&self) -> bool {
self.settings.remember_window_position
}
}
```
2. Changed setting to false
3. Close and reopen app
4. App preserves window position
**Expected behavior**
window should open in roughly the same spot, chosen by system, but different from last position when it was closed. effectively not remembering window position
**Desktop (please complete the following information):**
- OS: Windows 10
- Version
**Additional context**
trying to fix this issue https://github.com/Shadlock0133/music-vibes/issues/18 in my app
Contributor guide
Research direction
Start with eframe's App::persist_egui_memory implementation and reproduce the behavior on Windows 10 using the steps in the issue. Trace how the setting affects persisted window position when the app closes and reopens; done means returning false prevents the previous position from being reused.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- rust
- Domain
- desktop
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 38/100