style<Launcher>: hide tab close button by default

This commit is contained in:
leo 2020-10-30 12:05:52 +08:00
parent 3b7a030846
commit dbf5ffe01b
2 changed files with 40 additions and 32 deletions

View file

@ -16,6 +16,7 @@ namespace SourceGit.UI {
public class Tab {
public string Title { get; set; }
public string Tooltip { get; set; }
public bool AllowDragDrop { get; set; }
public bool IsActive { get; set; }
public Git.Repository Repo { get; set; }
public object Page { get; set; }
@ -41,6 +42,7 @@ namespace SourceGit.UI {
var tab = new Tab() {
Title = repo.Parent == null ? repo.Name : $"{repo.Parent.Name} : {repo.Name}",
Tooltip = repo.Path,
AllowDragDrop = true,
Repo = repo,
Page = page,
};
@ -54,6 +56,7 @@ namespace SourceGit.UI {
Tabs.Add(new Tab() {
Title = "SOURCE GIT",
Tooltip = "Welcome Page",
AllowDragDrop = false,
Page = new Manager(),
});