Skip to content

Commit

Permalink
feat: middle-click will now close windows and quit applications
Browse files Browse the repository at this point in the history
  • Loading branch information
lwouis committed Jan 14, 2025
1 parent 3a0c84a commit 2f8c014
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/ui/main-window/ThumbnailView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,13 @@ class ThumbnailView: FlippedView {
override func otherMouseUp(with event: NSEvent) {
// middle-click
if event.buttonNumber == 2 {
window_?.close()
if let window_ {
if window_.isWindowlessApp {
window_.application.quit()
} else {
window_.close()
}
}
}
}

Expand Down

0 comments on commit 2f8c014

Please sign in to comment.