Skip to content

Commit

Permalink
[Main Menu] Added Privacy Policy link in App Menu
Browse files Browse the repository at this point in the history
Signed-off-by: Kevin López Brante <kevin@kddlb.cl>
  • Loading branch information
kddlb authored and kode54 committed Jun 22, 2022
1 parent de5cce8 commit a4692b8
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Application/AppController.h
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,8 @@
- (IBAction)openKofiPage:(id)sender;
- (IBAction)openPatreonPage:(id)sender;

- (IBAction)privacyPolicy:(id)sender;

- (IBAction)feedback:(id)sender;

- (void)initDefaults;
Expand Down
4 changes: 4 additions & 0 deletions Application/AppController.m
Original file line number Diff line number Diff line change
Expand Up @@ -505,6 +505,10 @@ - (IBAction)openPatreonPage:(id)sender {
[[NSWorkspace sharedWorkspace] openURL:[NSURL URLWithString:@"https://www.patreon.com/kode54"]];
}

- (IBAction)privacyPolicy:(id)sender {
[[NSWorkspace sharedWorkspace] openURL:[NSURL URLWithString:@"https://www.iubenda.com/privacy-policy/59859310"]];
}

- (IBAction)feedback:(id)sender {
NSString *version = [[NSBundle mainBundle] objectForInfoDictionaryKey:@"CFBundleVersion"];

Expand Down
7 changes: 7 additions & 0 deletions Base.lproj/MainMenu.xib
Original file line number Diff line number Diff line change
Expand Up @@ -1250,6 +1250,13 @@
<menuItem isSeparatorItem="YES" id="1100">
<modifierMask key="keyEquivalentModifierMask" command="YES"/>
</menuItem>
<menuItem title="Privacy Policy..." id="nb7-FW-egH">
<modifierMask key="keyEquivalentModifierMask"/>
<connections>
<action selector="privacyPolicy:" target="226" id="c3c-kH-5sf"/>
</connections>
</menuItem>
<menuItem isSeparatorItem="YES" id="0ig-xg-gkg"/>
<menuItem title="Donate" id="751">
<modifierMask key="keyEquivalentModifierMask"/>
<menu key="submenu" title="Donate" id="kue-p2-G0Y">
Expand Down

0 comments on commit a4692b8

Please sign in to comment.