mirror of
https://github.com/tauri-apps/tauri.git
synced 2026-04-03 10:11:15 +02:00
fix: center and focus not being allowed in config (#2199)
This commit is contained in:
@@ -442,6 +442,10 @@ impl WindowBuilder for WindowBuilderWrapper {
|
||||
window = window.position(x, y);
|
||||
}
|
||||
|
||||
if config.center {
|
||||
window = window.center();
|
||||
}
|
||||
|
||||
if config.focus {
|
||||
window = window.focus();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user