fix: solve warnings - Layout cycle detected

This commit is contained in:
leo 2024-06-05 21:04:19 +08:00
parent 0c618998b2
commit 87dccda8ff
No known key found for this signature in database
GPG key ID: B528468E49CD0E58

View file

@ -85,7 +85,7 @@ namespace SourceGit.Views
Content = null; Content = null;
var changes = Changes; var changes = Changes;
if (changes == null) if (changes == null || changes.Count == 0)
return; return;
var viewMode = ViewMode; var viewMode = ViewMode;