mirror of
https://github.com/sourcegit-scm/sourcegit
synced 2025-05-23 05:05:00 +00:00
style<Launcher>: hide tab close button by default
This commit is contained in:
parent
3b7a030846
commit
dbf5ffe01b
2 changed files with 40 additions and 32 deletions
|
@ -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(),
|
||||
});
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue