forked from shadowfacts/Tusker
Allow draging accounts in Preferences into new scenes
This commit is contained in:
parent
ceb58f1d92
commit
feacf576d7
|
@ -36,6 +36,9 @@ struct PreferencesView: View {
|
||||||
.foregroundColor(.secondary)
|
.foregroundColor(.secondary)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}.onDrag {
|
||||||
|
let activity = UserActivityManager.mainSceneActivity(accountID: account.id)
|
||||||
|
return NSItemProvider(object: activity)
|
||||||
}
|
}
|
||||||
}.onDelete { (indices: IndexSet) in
|
}.onDelete { (indices: IndexSet) in
|
||||||
var indices = indices
|
var indices = indices
|
||||||
|
|
Loading…
Reference in New Issue