mirror of
https://github.com/sourcegit-scm/sourcegit
synced 2025-05-22 12:45:00 +00:00
feature(Launcher): show repository path as tooltip on tabs
This commit is contained in:
parent
073c189f18
commit
692442aff1
2 changed files with 12 additions and 2 deletions
|
@ -15,6 +15,7 @@ namespace SourceGit.UI {
|
|||
/// </summary>
|
||||
public class Tab {
|
||||
public string Title { get; set; }
|
||||
public string Tooltip { get; set; }
|
||||
public bool IsActive { get; set; }
|
||||
public Git.Repository Repo { get; set; }
|
||||
public object Page { get; set; }
|
||||
|
@ -50,6 +51,7 @@ namespace SourceGit.UI {
|
|||
Dispatcher.Invoke(() => {
|
||||
var tab = new Tab() {
|
||||
Title = repo.Parent == null ? repo.Name : $"{repo.Parent.Name} : {repo.Name}",
|
||||
Tooltip = repo.Path,
|
||||
Repo = repo,
|
||||
Page = new Dashboard(repo),
|
||||
};
|
||||
|
@ -61,6 +63,7 @@ namespace SourceGit.UI {
|
|||
|
||||
Tabs.Add(new Tab() {
|
||||
Title = "SOURCE GIT",
|
||||
Tooltip = "Welcome Page",
|
||||
Page = new Manager(),
|
||||
});
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue