diff --git a/src/Commands/Worktree.cs b/src/Commands/Worktree.cs index 800cb309..31814427 100644 --- a/src/Commands/Worktree.cs +++ b/src/Commands/Worktree.cs @@ -70,7 +70,7 @@ namespace SourceGit.Commands Args += "--track "; if (!string.IsNullOrEmpty(name)) - Args += $"-b {name} "; + Args += $"-B {name} "; Args += $"\"{fullpath}\" "; diff --git a/src/Views/Launcher.axaml.cs b/src/Views/Launcher.axaml.cs index f53f7a40..fd67ecda 100644 --- a/src/Views/Launcher.axaml.cs +++ b/src/Views/Launcher.axaml.cs @@ -11,8 +11,6 @@ namespace SourceGit.Views { public Launcher() { - InitializeComponent(); - var layout = ViewModels.Preference.Instance.Layout; WindowState = layout.LauncherWindowState; @@ -21,6 +19,8 @@ namespace SourceGit.Views Width = layout.LauncherWidth; Height = layout.LauncherHeight; } + + InitializeComponent(); } protected override void OnPropertyChanged(AvaloniaPropertyChangedEventArgs change)