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

Check for Updates opens the releases page

Alejandro Buján8a38b3aca999
diff --git a/Sources/Tendedero/AppDelegate.swift b/Sources/Tendedero/AppDelegate.swift
index 92868af..caed6cf 100644
--- a/Sources/Tendedero/AppDelegate.swift
+++ b/Sources/Tendedero/AppDelegate.swift
@@ -721,6 +721,12 @@ final class AppDelegate: NSObject, NSApplicationDelegate, NSMenuDelegate {
login.state = SMAppService.mainApp.status == .enabled ? .on : .off
menu.addItem(login)
+ // The app never connects to anything, so it cannot tell when a new
+ // version is out; this opens the releases page instead.
+ menu.addItem(ClosureMenuItem(L("Check for Updates…")) {
+ NSWorkspace.shared.open(URL(string: "https://github.com/alejandrobujan/tendedero/releases/latest")!)
+ })
+
menu.addItem(.separator())
menu.addItem(ClosureMenuItem(L("Quit Tendedero"), key: "q") {
NSApp.terminate(nil)
diff --git a/Sources/Tendedero/Resources/az.lproj/Localizable.strings b/Sources/Tendedero/Resources/az.lproj/Localizable.strings
index fffdeea..7a8a05f 100644
--- a/Sources/Tendedero/Resources/az.lproj/Localizable.strings
+++ b/Sources/Tendedero/Resources/az.lproj/Localizable.strings
@@ -15,6 +15,7 @@
"Open screenshots folder" = "Ekran şəkilləri qovluğunu aç";
"Sounds" = "Səslər";
"Open at login" = "Sistemə girişdə aç";
+"Check for Updates…" = "Yeniləmələri yoxla…";
"Quit Tendedero" = "Tendedero-dan çıx";
"Could not change the login setting" = "Giriş ayarını dəyişmək alınmadı";
"Move Tendedero to the Applications folder and try again." = "Tendedero-nu Applications (Proqramlar) qovluğuna köçürün və yenidən cəhd edin.";
diff --git a/Sources/Tendedero/Resources/en.lproj/Localizable.strings b/Sources/Tendedero/Resources/en.lproj/Localizable.strings
index c335896..2eacb1f 100644
--- a/Sources/Tendedero/Resources/en.lproj/Localizable.strings
+++ b/Sources/Tendedero/Resources/en.lproj/Localizable.strings
@@ -15,6 +15,7 @@
"Open screenshots folder" = "Open screenshots folder";
"Sounds" = "Sounds";
"Open at login" = "Open at login";
+"Check for Updates…" = "Check for Updates…";
"Quit Tendedero" = "Quit Tendedero";
"Could not change the login setting" = "Could not change the login setting";
"Move Tendedero to the Applications folder and try again." = "Move Tendedero to the Applications folder and try again.";
diff --git a/Sources/Tendedero/Resources/es.lproj/Localizable.strings b/Sources/Tendedero/Resources/es.lproj/Localizable.strings
index c634204..097cc18 100644
--- a/Sources/Tendedero/Resources/es.lproj/Localizable.strings
+++ b/Sources/Tendedero/Resources/es.lproj/Localizable.strings
@@ -13,6 +13,7 @@
"Open screenshots folder" = "Abrir carpeta de capturas";
"Sounds" = "Sonidos";
"Open at login" = "Abrir al iniciar sesión";
+"Check for Updates…" = "Buscar actualizaciones…";
"Quit Tendedero" = "Salir de Tendedero";
"Could not change the login setting" = "No se pudo cambiar el inicio de sesión";
"Move Tendedero to the Applications folder and try again." = "Mueve Tendedero a la carpeta Aplicaciones y vuelve a intentarlo.";
diff --git a/Sources/Tendedero/Resources/tr.lproj/Localizable.strings b/Sources/Tendedero/Resources/tr.lproj/Localizable.strings
index 1041159..63b1255 100644
--- a/Sources/Tendedero/Resources/tr.lproj/Localizable.strings
+++ b/Sources/Tendedero/Resources/tr.lproj/Localizable.strings
@@ -13,6 +13,7 @@
"Open screenshots folder" = "Ekran görüntüleri klasörünü aç";
"Sounds" = "Sesler";
"Open at login" = "Başlangıçta aç";
+"Check for Updates…" = "Güncellemeleri denetle…";
"Quit Tendedero" = "Tendedero'yu kapat";
"Could not change the login setting" = "Giriş ayarı değiştirilemedi";
"Move Tendedero to the Applications folder and try again." = "Tendedero'yu Uygulamalar klasörüne taşıyın ve tekrar deneyin.";
diff --git a/Sources/Tendedero/Resources/zh-Hans.lproj/Localizable.strings b/Sources/Tendedero/Resources/zh-Hans.lproj/Localizable.strings
index 8403c38..a28a3bf 100644
--- a/Sources/Tendedero/Resources/zh-Hans.lproj/Localizable.strings
+++ b/Sources/Tendedero/Resources/zh-Hans.lproj/Localizable.strings
@@ -13,6 +13,7 @@
"Open screenshots folder" = "打开截图文件夹";
"Sounds" = "声音";
"Open at login" = "登录时打开";
+"Check for Updates…" = "检查更新…";
"Quit Tendedero" = "退出 Tendedero";
"Could not change the login setting" = "无法更改登录项设置";
"Move Tendedero to the Applications folder and try again." = "请先把 Tendedero 移到「应用程序」文件夹,再试一次。";