Skip to content

Commit

Permalink
Update DockControlState.cs
Browse files Browse the repository at this point in the history
  • Loading branch information
wieslawsoltes committed Mar 11, 2024
1 parent a44f27b commit 97e5936
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/Dock.Avalonia/Internal/DockControlState.cs
Original file line number Diff line number Diff line change
Expand Up @@ -140,9 +140,14 @@ private void Execute(Point point, DockOperation operation, DragAction dragAction
if (_state.DragControl.DataContext is IDockable sourceDockable && _state.DropControl.DataContext is IDockable targetDockable)
{
if (sourceDockable is IDock dock)
{
sourceDockable = dock.ActiveDockable;

Check warning on line 144 in src/Dock.Avalonia/Internal/DockControlState.cs

View workflow job for this annotation

GitHub Actions / Build ubuntu-latest

Converting null literal or possible null value to non-nullable type.

Check warning on line 144 in src/Dock.Avalonia/Internal/DockControlState.cs

View workflow job for this annotation

GitHub Actions / Build ubuntu-latest

Converting null literal or possible null value to non-nullable type.

Check warning on line 144 in src/Dock.Avalonia/Internal/DockControlState.cs

View workflow job for this annotation

GitHub Actions / Build ubuntu-latest

Converting null literal or possible null value to non-nullable type.

Check warning on line 144 in src/Dock.Avalonia/Internal/DockControlState.cs

View workflow job for this annotation

GitHub Actions / Build ubuntu-latest

Converting null literal or possible null value to non-nullable type.

Check warning on line 144 in src/Dock.Avalonia/Internal/DockControlState.cs

View workflow job for this annotation

GitHub Actions / Build windows-latest

Converting null literal or possible null value to non-nullable type.

Check warning on line 144 in src/Dock.Avalonia/Internal/DockControlState.cs

View workflow job for this annotation

GitHub Actions / Build windows-latest

Converting null literal or possible null value to non-nullable type.

Check warning on line 144 in src/Dock.Avalonia/Internal/DockControlState.cs

View workflow job for this annotation

GitHub Actions / Build windows-latest

Converting null literal or possible null value to non-nullable type.

Check warning on line 144 in src/Dock.Avalonia/Internal/DockControlState.cs

View workflow job for this annotation

GitHub Actions / Build windows-latest

Converting null literal or possible null value to non-nullable type.

Check warning on line 144 in src/Dock.Avalonia/Internal/DockControlState.cs

View workflow job for this annotation

GitHub Actions / Build macos-latest

Converting null literal or possible null value to non-nullable type.

Check warning on line 144 in src/Dock.Avalonia/Internal/DockControlState.cs

View workflow job for this annotation

GitHub Actions / Build macos-latest

Converting null literal or possible null value to non-nullable type.

Check warning on line 144 in src/Dock.Avalonia/Internal/DockControlState.cs

View workflow job for this annotation

GitHub Actions / Build macos-latest

Converting null literal or possible null value to non-nullable type.

Check warning on line 144 in src/Dock.Avalonia/Internal/DockControlState.cs

View workflow job for this annotation

GitHub Actions / Build macos-latest

Converting null literal or possible null value to non-nullable type.
}

if (sourceDockable == null)
{
return;
}

DockManager.Position = DockHelpers.ToDockPoint(point);

Expand Down

0 comments on commit 97e5936

Please sign in to comment.