mirror of
https://github.com/sourcegit-scm/sourcegit
synced 2025-06-01 17:24:59 +00:00
fix<RevisionFiles>: fix revision file tree missing issue due to Unloaded event will be called on active tab changed
This commit is contained in:
parent
8db90574bb
commit
dcf24db75a
3 changed files with 19 additions and 2 deletions
|
@ -19,6 +19,12 @@ namespace SourceGit.Views.Widgets {
|
|||
|
||||
public CommitDetail() {
|
||||
InitializeComponent();
|
||||
|
||||
Unloaded += (o, e) => {
|
||||
changeList.ItemsSource = new List<Models.Change>();
|
||||
changeContainer.CleanUp();
|
||||
revisionFiles.Cleanup();
|
||||
};
|
||||
}
|
||||
|
||||
public void SetData(string repo, Models.Commit commit) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue