mirror of
https://github.com/sourcegit-scm/sourcegit
synced 2025-05-22 04:34:59 +00:00
feature<Repository>: supports modify display name of repository
This commit is contained in:
parent
22416812a0
commit
4e40018a78
8 changed files with 160 additions and 1 deletions
|
@ -14,6 +14,11 @@ namespace SourceGit.Models {
|
|||
/// </summary>
|
||||
public static event Action<Repository> Opened;
|
||||
|
||||
/// <summary>
|
||||
/// 仓库的显示名变化了
|
||||
/// </summary>
|
||||
public static event Action<string, string> DisplayNameChanged;
|
||||
|
||||
/// <summary>
|
||||
/// 仓库的书签变化了
|
||||
/// </summary>
|
||||
|
@ -102,6 +107,14 @@ namespace SourceGit.Models {
|
|||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 通知仓库显示名变化
|
||||
/// </summary>
|
||||
/// <param name="repo"></param>
|
||||
public static void NotifyDisplayNameChanged(Repository repo) {
|
||||
DisplayNameChanged?.Invoke(repo.Path, repo.Name);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 通知仓库标签变化
|
||||
/// </summary>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue