From 474dca39671c0757b4c48078955e85c636b93d07 Mon Sep 17 00:00:00 2001 From: Christopher Snowhill Date: Tue, 24 Nov 2020 16:03:49 -0800 Subject: [PATCH] Update donation menu items --- Application/AppController.h | 8 ++++++-- Application/AppController.m | 24 +++++++++++++++++++---- Base.lproj/MainMenu.xib | 38 +++++++++++++++++++++++++++++++------ en.lproj/MainMenu.strings | 2 +- 4 files changed, 59 insertions(+), 13 deletions(-) diff --git a/Application/AppController.h b/Application/AppController.h index ccc61798e..10f25e4ac 100644 --- a/Application/AppController.h +++ b/Application/AppController.h @@ -74,8 +74,12 @@ - (IBAction)delEntries:(id)sender; - (IBAction)savePlaylist:(id)sender; -- (IBAction)donate:(id)sender; -- (IBAction)patreon:(id)sender; +- (IBAction)openLiberapayPage:(id)sender; +- (IBAction)openPaypalPage:(id)sender; +- (IBAction)openBitcoinPage:(id)sender; +- (IBAction)openPatreonPage:(id)sender; +- (IBAction)openKofiPage:(id)sender; + - (IBAction)feedback:(id)sender; - (IBAction)toggleInfoDrawer:(id)sender; diff --git a/Application/AppController.m b/Application/AppController.m index 6ef0ca67e..05d52cd64 100644 --- a/Application/AppController.m +++ b/Application/AppController.m @@ -334,16 +334,32 @@ } } -- (IBAction)donate:(id)sender +- (IBAction)openLiberapayPage:(id)sender { - [[NSWorkspace sharedWorkspace] openURL:[NSURL URLWithString:@"https://www.paypal.me/kode54"]]; + [[NSWorkspace sharedWorkspace] openURL:[NSURL URLWithString:@"https://liberapay.com/kode54"]]; } -- (IBAction)patreon:(id)sender +- (IBAction)openPaypalPage:(id)sender { - [[NSWorkspace sharedWorkspace] openURL:[NSURL URLWithString:@"https://www.patreon.com/kode54"]]; + [[NSWorkspace sharedWorkspace] openURL:[NSURL URLWithString:@"https://www.paypal.com/paypalme/kode54"]]; } +- (IBAction)openBitcoinPage:(id)sender +{ + [[NSWorkspace sharedWorkspace] openURL:[NSURL URLWithString:@"https://kode54.net/donateBitcoin"]]; +} + +- (IBAction)openPatreonPage:(id)sender +{ + [[NSWorkspace sharedWorkspace] openURL:[NSURL URLWithString:@"https://patreon.com/kode54"]]; +} + +- (IBAction)openKofiPage:(id)sender +{ + [[NSWorkspace sharedWorkspace] openURL:[NSURL URLWithString:@"https://ko-fi.com/kode54"]]; +} + + - (IBAction)feedback:(id)sender { NSString *version = [[NSBundle mainBundle] objectForInfoDictionaryKey:@"CFBundleVersion"]; diff --git a/Base.lproj/MainMenu.xib b/Base.lproj/MainMenu.xib index d71e64c6f..5be971440 100644 --- a/Base.lproj/MainMenu.xib +++ b/Base.lproj/MainMenu.xib @@ -26,19 +26,19 @@ @@ -774,20 +774,46 @@ - + - + + + + + + + + + + + - + + + + + + + + + + + - + + + + + + + diff --git a/en.lproj/MainMenu.strings b/en.lproj/MainMenu.strings index 6b7eee521..2b3d36c11 100644 --- a/en.lproj/MainMenu.strings +++ b/en.lproj/MainMenu.strings @@ -150,7 +150,7 @@ "702.title" = "Cog"; /* Class = "NSMenuItem"; title = "Support Cog..."; ObjectID = "751"; */ -"751.title" = "Support Cog..."; +"751.title" = "Donate"; /* Class = "NSMenuItem"; title = "Current Song"; ObjectID = "791"; */ "791.title" = "Current Song";