mirror of
https://github.com/tauri-apps/plugins-workspace.git
synced 2026-06-06 13:53:54 +02:00
fix(window-state): saving a minimized window's state changes its position to -32000 (#1702)
* Don't store position on minimized * Add change file * ?
This commit is contained in:
@@ -313,7 +313,7 @@ impl<R: Runtime> WindowExtInternal for Window<R> {
|
||||
}
|
||||
}
|
||||
|
||||
if flags.contains(StateFlags::POSITION) && !is_maximized {
|
||||
if flags.contains(StateFlags::POSITION) && !is_maximized && !self.is_minimized()? {
|
||||
let position = self.outer_position()?;
|
||||
state.x = position.x;
|
||||
state.y = position.y;
|
||||
|
||||
Reference in New Issue
Block a user