Fixed center handling

This commit is contained in:
Florian Rappl
2025-12-22 12:32:52 +01:00
parent 29fdbb5315
commit ae3f755648
8 changed files with 16 additions and 13 deletions

View File

@@ -130,11 +130,8 @@ namespace ElectronNET.API
options.Height += 7;
}
if (options.X == -1 && options.Y == -1)
if (!options.X.HasValue && !options.Y.HasValue)
{
options.X = 0;
options.Y = 0;
await BridgeConnector.Socket.Emit("createBrowserWindow", options, loadUrl).ConfigureAwait(false);
}
else