Skip to content

Screenshots, hung out to dry. A tiny native macOS app that hangs every screenshot on a line at the top of your screen.

Swift

A screenshot hangs without a second chime after the shutter

Alejandro Buján990a76a5241c
diff --git a/Sources/Tendedero/AppDelegate.swift b/Sources/Tendedero/AppDelegate.swift
index db16c94..f814660 100644
--- a/Sources/Tendedero/AppDelegate.swift
+++ b/Sources/Tendedero/AppDelegate.swift
@@ -295,7 +295,10 @@ final class AppDelegate: NSObject, NSApplicationDelegate, NSMenuDelegate {
// was taken on. On a full line the oldest photo then falls in view as
// the new one flies in.
comeDown(on: screen)
- guard let id = line.hang(url, flying: from != nil) else {
+ // A screenshot macOS took already played its shutter, so it hangs
+ // without a chime of its own. Copied images and watched folders,
+ // which come with no sound, keep it.
+ guard let id = line.hang(url, quietly: from != nil, flying: from != nil) else {
// Nothing hung after all, so an empty line goes away again.
itemsChanged()
return