Add support menu item

This commit is contained in:
Leon Böttger committed 2025-03-02 07:30:01 +01:00
1 parent d6658498ba
commit 753827e6c3
22 files changed
+32 -5

No files matched your search

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.9 KiB

After

Width:  |  Height:  |  Size: 4.9 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 47 KiB

After

Width:  |  Height:  |  Size: 47 KiB

Binary file not shown.
+10
View File
@@ -34,6 +34,10 @@ class AppDelegate: NSObject, NSApplicationDelegate, MainAppDelegate{
// let recommendedAppsItem = NSMenuItem(title: NSLocalizedString("RecommendedApps", value: "Recommended Apps", comment: ""), action: #selector(openRecommendedApps), keyEquivalent: "")
// menu.addItem(recommendedAppsItem)
// Add "Recommended Apps" menu item
let recommendedAppsItem = NSMenuItem(title: NSLocalizedString("GetSupport", value: "Support", comment: ""), action: #selector(getSupport), keyEquivalent: "")
menu.addItem(recommendedAppsItem)
// Add "Privacy Policy" menu item
let privacyPolicyItem = NSMenuItem(title: NSLocalizedString("PrivacyPolicy", value: "Privacy Policy", comment: ""), action: #selector(openPrivacyPolicy), keyEquivalent: "")
menu.addItem(privacyPolicyItem)
@@ -155,6 +159,12 @@ class AppDelegate: NSObject, NSApplicationDelegate, MainAppDelegate{
}
}
@objc func getSupport() {
if let url = URL(string: "mailto:quickdrop@leonboettger.com?subject=QuickDrop") {
NSWorkspace.shared.open(url)
}
}
// Action for "Privacy Policy" menu item
@objc func openPrivacyPolicy() {
if let url = URL(string: " ") {
+2
View File
@@ -48,6 +48,8 @@
"RecommendedApps" = "Recommended Apps";
"GetSupport" = "Support";
"PrivacyPolicy" = "Privacy Policy";
"UserManual" = "User Manual";
+1
View File
@@ -41,6 +41,7 @@
"VisibleToEveryone" = "مرئي للجميع";
"RecommendedApps" = "التطبيقات الموصى بها";
"GetSupport" = "الدعم";
"PrivacyPolicy" = "سياسة الخصوصية";
"UserManual" = "دليل المستخدم";
+1
View File
@@ -41,6 +41,7 @@
"VisibleToEveryone" = "Für alle sichtbar";
"RecommendedApps" = "Empfohlene Apps";
"GetSupport" = "Support";
"PrivacyPolicy" = "Datenschutzerklärung";
+1
View File
@@ -41,6 +41,7 @@
"VisibleToEveryone" = "Visible para todos";
"RecommendedApps" = "Apps recomendadas";
"GetSupport" = "Soporte";
"PrivacyPolicy" = "Política de privacidad";
"UserManual" = "Manual de usuario";
+1
View File
@@ -41,6 +41,7 @@
"VisibleToEveryone" = "Visible par tout le monde";
"RecommendedApps" = "Applications recommandées";
"GetSupport" = "Support";
"PrivacyPolicy" = "Politique de confidentialité";
"UserManual" = "Manuel d'utilisateur";
+1
View File
@@ -41,6 +41,7 @@
"VisibleToEveryone" = "Mindenki számára felfedezhető";
"RecommendedApps" = "Ajánlott alkalmazások";
"GetSupport" = "Támogatás";
"PrivacyPolicy" = "Adatvédelmi irányelvek";
"UserManual" = "Felhasználói kézikönyv";
+1
View File
@@ -41,6 +41,7 @@
"VisibleToEveryone" = "Visibile a tutti";
"RecommendedApps" = "App consigliate";
"GetSupport" = "Supporto";
"PrivacyPolicy" = "Informativa sulla privacy";
"UserManual" = "Manuale utente";
+1
View File
@@ -41,6 +41,7 @@
"VisibleToEveryone" = "すべてのユーザーに公開";
"RecommendedApps" = "おすすめアプリ";
"GetSupport" = "サポート";
"PrivacyPolicy" = "プライバシーポリシー";
"UserManual" = "ユーザーマニュアル";
+1
View File
@@ -41,6 +41,7 @@
"VisibleToEveryone" = "모든 사용자에게 공개";
"RecommendedApps" = "추천 앱";
"GetSupport" = "지원";
"PrivacyPolicy" = "개인정보 처리방침";
"UserManual" = "사용자 매뉴얼";
+1 -1
View File
@@ -41,7 +41,7 @@
"VisibleToEveryone" = "Zichtbaar voor iedereen";
"RecommendedApps" = "Aanbevolen apps";
"GetSupport" = "Ondersteuning";
"PrivacyPolicy" = "Privacybeleid";
"UserManual" = "Gebruikershandleiding";
+1
View File
@@ -41,6 +41,7 @@
"VisibleToEveryone" = "Visível para todos";
"RecommendedApps" = "Apps recomendados";
"GetSupport" = "Suporte";
"PrivacyPolicy" = "Política de Privacidade";
"UserManual" = "Manual do Usuário";
+1
View File
@@ -41,6 +41,7 @@
"VisibleToEveryone" = "Visível para todos";
"RecommendedApps" = "Aplicativos recomendados";
"GetSupport" = "Suporte";
"PrivacyPolicy" = "Política de privacidade";
"UserManual" = "Manual do usuário";
+1
View File
@@ -41,6 +41,7 @@
"VisibleToEveryone" = "Vizibil pentru toată lumea";
"RecommendedApps" = "Aplicații recomandate";
"GetSupport" = "Suport";
"PrivacyPolicy" = "Politica de confidențialitate";
"UserManual" = "Manualul utilizatorului";
+1
View File
@@ -41,6 +41,7 @@
"NotificationsDenied.Title" = "Требуется доступ к уведомлениям";
"RecommendedApps" = "Рекомендуемые приложения";
"GetSupport" = "Поддержка";
"PrivacyPolicy" = "Политика конфиденциальности";
+1
View File
@@ -41,6 +41,7 @@
"VisibleToEveryone" = "เปิดเผยต่อทุกคน";
"RecommendedApps" = "แอปแนะนำ";
"GetSupport" = "การสนับสนุน";
"PrivacyPolicy" = "นโยบายความเป็นส่วนตัว";
"UserManual" = "คู่มือการใช้งาน";
+1
View File
@@ -41,6 +41,7 @@
"VisibleToEveryone" = "Видимість: для всіх";
"RecommendedApps" = "Рекомендовані додатки";
"GetSupport" = "Підтримка";
"PrivacyPolicy" = "Політика конфіденційності";
"UserManual" = "Посібник користувача";
@@ -41,6 +41,7 @@
"VisibleToEveryone" = "对所有人可见";
"RecommendedApps" = "推荐应用";
"GetSupport" = "支持";
"PrivacyPolicy" = "隐私政策";
"UserManual" = "用户手册";
+4 -4
View File
@@ -793,8 +793,8 @@
MTL_FAST_MATH = YES;
ONLY_ACTIVE_ARCH = YES;
SDKROOT = macosx;
SHARED_BUILD = 7;
SHARED_VERSION = 1.2.1;
SHARED_BUILD = 9;
SHARED_VERSION = 1.3;
SWIFT_ACTIVE_COMPILATION_CONDITIONS = DEBUG;
SWIFT_OPTIMIZATION_LEVEL = "-Onone";
};
@@ -852,8 +852,8 @@
MTL_ENABLE_DEBUG_INFO = NO;
MTL_FAST_MATH = YES;
SDKROOT = macosx;
SHARED_BUILD = 7;
SHARED_VERSION = 1.2.1;
SHARED_BUILD = 9;
SHARED_VERSION = 1.3;
SWIFT_COMPILATION_MODE = wholemodule;
SWIFT_OPTIMIZATION_LEVEL = "-O";
};