Skip to content

Commit d64b7a7

Browse files
committed
code_style: private functions should appear after all public functions
1 parent c0b13bd commit d64b7a7

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

src/Native/Windows.cs

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -78,16 +78,6 @@ public void SetupApp(AppBuilder builder)
7878
}
7979
}
8080

81-
private void ExtendWindowFrame(Window w)
82-
{
83-
var platformHandle = w.TryGetPlatformHandle();
84-
if (platformHandle == null)
85-
return;
86-
87-
var margins = new MARGINS { cxLeftWidth = 1, cxRightWidth = 1, cyTopHeight = 1, cyBottomHeight = 1 };
88-
DwmExtendFrameIntoClientArea(platformHandle.Handle, ref margins);
89-
}
90-
9181
public string FindGitExecutable()
9282
{
9383
var reg = Microsoft.Win32.RegistryKey.OpenBaseKey(
@@ -220,6 +210,16 @@ public void OpenWithDefaultEditor(string file)
220210
Process.Start(start);
221211
}
222212

213+
private void ExtendWindowFrame(Window w)
214+
{
215+
var platformHandle = w.TryGetPlatformHandle();
216+
if (platformHandle == null)
217+
return;
218+
219+
var margins = new MARGINS { cxLeftWidth = 1, cxRightWidth = 1, cyTopHeight = 1, cyBottomHeight = 1 };
220+
DwmExtendFrameIntoClientArea(platformHandle.Handle, ref margins);
221+
}
222+
223223
// There are two versions of PowerShell : pwsh.exe (preferred) and powershell.exe (system default)
224224
private string ChoosePowerShell()
225225
{

0 commit comments

Comments
 (0)