Give users the choice to not switch (#916)

Co-authored-by: goat <goatsdev@protonmail.com>
This commit is contained in:
Infi 2022-07-13 21:27:10 +02:00 committed by goat
parent 85668a9943
commit 098607cca8
No known key found for this signature in database
GPG key ID: 7773BB5B43BA52E5

View file

@ -31,8 +31,8 @@ public class BranchSwitcherWindow : Window
public BranchSwitcherWindow()
: base("Branch Switcher", ImGuiWindowFlags.AlwaysAutoResize)
{
this.ShowCloseButton = false;
this.RespectCloseHotkey = false;
this.ShowCloseButton = true;
this.RespectCloseHotkey = true;
}
/// <inheritdoc/>
@ -95,6 +95,7 @@ public class BranchSwitcherWindow : Window
if (ImGui.Button("Pick"))
{
Pick();
this.IsOpen = false;
}
ImGui.SameLine();