Skip to content

Commit

Permalink
Close color panel on gradient picker deactivate
Browse files Browse the repository at this point in the history
  • Loading branch information
jordanbaird committed Sep 22, 2024
1 parent 2042322 commit 4431b48
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -404,9 +404,11 @@ private struct CustomGradientPickerHandle: View {
cancellable.cancel()
}
cancellables.removeAll()
NSColorPanel.shared.close()
}

private func deleteSelectedStop() {
deactivate()
guard
let selectedStop,
let index = gradient.stops.firstIndex(of: selectedStop)
Expand Down

0 comments on commit 4431b48

Please sign in to comment.