mirror of
https://github.com/sourcegit-scm/sourcegit
synced 2025-06-02 09:35:00 +00:00
fix: crash when drag & drop on macOS
This commit is contained in:
parent
f586979ac5
commit
eca37e8d70
3 changed files with 7 additions and 4 deletions
|
@ -216,7 +216,8 @@ namespace SourceGit.Views
|
|||
|
||||
private void DropTab(object sender, DragEventArgs e)
|
||||
{
|
||||
if (e.Data.Get("MovedTab") is ViewModels.LauncherPage moved &&
|
||||
if (e.Data.Contains("MovedTab") &&
|
||||
e.Data.Get("MovedTab") is ViewModels.LauncherPage moved &&
|
||||
sender is Border { DataContext: ViewModels.LauncherPage to } &&
|
||||
to != moved)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue