mirror of
https://github.com/tauri-apps/plugins-workspace.git
synced 2026-04-25 11:46:06 +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:
@@ -0,0 +1,5 @@
|
||||
---
|
||||
"window-state": patch
|
||||
---
|
||||
|
||||
Fix saving a minimized window's state changes its position to -32000
|
||||
@@ -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