Open meequrox opened 1 year ago
I am not familiar with Rust and haven't looked into the proper ways to store such parameters, but at first glance I think it might be implemented in main.rs:main() something like this:
let mut context = tauri::generate_context!();
context.config_mut().tauri.windows[0].width = GET_SAVED_WIDTH();
context.config_mut().tauri.windows[0].height = GET_SAVED_HEIGHT();
builder
.run(context)
.expect("error while running tauri application");
Searched for this issue and I'm glad its already here. This is an annoying problem for me, that it resets back to the default size upon every boot.
Describe the problem
By default, a 1024x724 window opens every time Cinny is started. The app doesn't remember window size when closing.
Describe the solution you'd like
Before the application closes, it remembers the current window size. On the next app launch the window will have this size.
For example, I installed Cinny for the first time and opened it. The window will have some default size. I clicked "Maximize Window" and the window resized to 1920x1058. Then I closed the app and reopened it. The size of the window should now be 1920x1058.
Alternatives considered
No response
Additional context
No response