fix: center and focus not being allowed in config (#2199)

This commit is contained in:
FabianLars
2021-07-12 16:59:32 +02:00
committed by GitHub
parent d0f34a3784
commit bc2c331dec
4 changed files with 31 additions and 0 deletions

View File

@@ -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();
}