From d64b7a7824ea68aee11ba0c524511e3640abd604 Mon Sep 17 00:00:00 2001 From: leo Date: Fri, 12 Apr 2024 09:41:12 +0800 Subject: [PATCH] code_style: private functions should appear after all public functions --- src/Native/Windows.cs | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/src/Native/Windows.cs b/src/Native/Windows.cs index e936293f..b6c9bd59 100644 --- a/src/Native/Windows.cs +++ b/src/Native/Windows.cs @@ -78,16 +78,6 @@ namespace SourceGit.Native } } - private void ExtendWindowFrame(Window w) - { - var platformHandle = w.TryGetPlatformHandle(); - if (platformHandle == null) - return; - - var margins = new MARGINS { cxLeftWidth = 1, cxRightWidth = 1, cyTopHeight = 1, cyBottomHeight = 1 }; - DwmExtendFrameIntoClientArea(platformHandle.Handle, ref margins); - } - public string FindGitExecutable() { var reg = Microsoft.Win32.RegistryKey.OpenBaseKey( @@ -220,6 +210,16 @@ namespace SourceGit.Native Process.Start(start); } + private void ExtendWindowFrame(Window w) + { + var platformHandle = w.TryGetPlatformHandle(); + if (platformHandle == null) + return; + + var margins = new MARGINS { cxLeftWidth = 1, cxRightWidth = 1, cyTopHeight = 1, cyBottomHeight = 1 }; + DwmExtendFrameIntoClientArea(platformHandle.Handle, ref margins); + } + // There are two versions of PowerShell : pwsh.exe (preferred) and powershell.exe (system default) private string ChoosePowerShell() {