Skip to content

Commit 1815951

Browse files
committed
BrowserWindowOptions; Fix default for FullScreenable
Electron's default is true
1 parent aa483eb commit 1815951

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

src/ElectronNET.API/API/Entities/BrowserWindowOptions.cs

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -115,10 +115,11 @@ public class BrowserWindowOptions
115115

116116
/// <summary>
117117
/// Whether the window can be put into fullscreen mode. On macOS, also whether the
118-
/// maximize/zoom button should toggle full screen mode or maximize window.Default
119-
/// is true.
118+
/// maximize/zoom button should toggle full screen mode or maximize window. Default
119+
/// is true (Electron default).
120120
/// </summary>
121-
public bool Fullscreenable { get; set; }
121+
[DefaultValue(true)]
122+
public bool Fullscreenable { get; set; } = true; // FIX: previously defaulted to false in C#
122123

123124
/// <summary>
124125
/// Whether to show the window in taskbar. Default is false.

0 commit comments

Comments
 (0)