mirror of
https://fastgit.cc/github.com/sourcegit-scm/sourcegit
synced 2026-04-22 13:51:15 +08:00
code_style: private functions should appear after all public functions
This commit is contained in:
@@ -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()
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user