enhance: skip update layout after detached from visual tree

This commit is contained in:
leo 2024-07-04 18:18:35 +08:00
parent 6553e27d36
commit c03cc85232
No known key found for this signature in database

View file

@ -376,7 +376,7 @@ namespace SourceGit.Views
return; return;
var grid = sender as Grid; var grid = sender as Grid;
if (grid == null) if (grid == null || !grid.IsAttachedToVisualTree())
return; return;
var leftHeight = grid.Bounds.Height - 28.0 * 5; var leftHeight = grid.Bounds.Height - 28.0 * 5;