Skip to content
This repository was archived by the owner on Jun 2, 2022. It is now read-only.

Commit a29dcb8

Browse files
committed
v1.5.1 fixes #6
1 parent 2fbb985 commit a29dcb8

File tree

6 files changed

+12
-5
lines changed

6 files changed

+12
-5
lines changed

RSwitch.xcodeproj/project.pbxproj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -558,7 +558,7 @@
558558
"$(PROJECT_DIR)/RSwitch/ObjC/ProcInfo",
559559
);
560560
MACOSX_DEPLOYMENT_TARGET = 10.14;
561-
MARKETING_VERSION = 1.5.0;
561+
MARKETING_VERSION = 1.5.1;
562562
PRODUCT_BUNDLE_IDENTIFIER = is.rud.bob.RSwitch;
563563
PRODUCT_NAME = "$(TARGET_NAME)";
564564
PROVISIONING_PROFILE_SPECIFIER = "rswitch-1+";
@@ -591,7 +591,7 @@
591591
"$(PROJECT_DIR)/RSwitch/ObjC/ProcInfo",
592592
);
593593
MACOSX_DEPLOYMENT_TARGET = 10.14;
594-
MARKETING_VERSION = 1.5.0;
594+
MARKETING_VERSION = 1.5.1;
595595
PRODUCT_BUNDLE_IDENTIFIER = is.rud.bob.RSwitch;
596596
PRODUCT_NAME = "$(TARGET_NAME)";
597597
PROVISIONING_PROFILE_SPECIFIER = "rswitch-1+";

RSwitch/Base.lproj/Main.storyboard

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -846,7 +846,7 @@ DQ
846846
<attributedString key="textStorage">
847847
<fragment>
848848
<string key="content">
849-
RSwitch v1.5.0
849+
RSwitch v1.5.1
850850

851851
Copyright © 2019 Bob Rudis
852852

RSwitch/Swift/HandleRSwitch.swift

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,11 @@ extension AppDelegate {
1515
// then removes the current alias and creates the new one.
1616
@objc func handleRSwitch(_ sender: NSMenuItem?) {
1717

18-
let fm = FileManager.default;
18+
let item = sender?.representedObject as! String
19+
let fm = FileManager.default
1920
let title = sender?.title
2021
let rm_link = (RVersions.macos_r_framework as NSString).appendingPathComponent("Current")
21-
let title_link = (RVersions.macos_r_framework as NSString).appendingPathComponent(title!)
22+
let title_link = (RVersions.macos_r_framework as NSString).appendingPathComponent(item)
2223

2324
do {
2425
try fm.removeItem(atPath: rm_link)

RSwitch/Swift/Menu.swift

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,10 @@ extension AppDelegate: NSMenuDelegate {
3535

3636
}
3737

38+
@objc func subscribeToMailingList(_ sender: NSMenuItem) {
39+
NSWorkspace.shared.open(URL(string: "https://lists.sr.ht/~hrbrmstr/rswitch")!)
40+
}
41+
3842
func menuWillOpen(_ menu: NSMenu) {
3943

4044
if (menu != self.statusMenu) { return }
@@ -112,6 +116,7 @@ extension AppDelegate: NSMenuDelegate {
112116
prefSub.addItem(rstudioCheckItem)
113117

114118
menu.addItem(NSMenuItem(title: "Check for update…", action: #selector(checkForUpdate), keyEquivalent: ""))
119+
menu.addItem(NSMenuItem(title: "Subscribe to mailing list…", action: #selector(subscribeToMailingList), keyEquivalent: ""))
115120
menu.addItem(NSMenuItem(title: "About RSwitch…", action: #selector(showAbout), keyEquivalent: ""))
116121
menu.addItem(NSMenuItem(title: "RSwitch Help…", action: #selector(rswitch_help), keyEquivalent: ""))
117122

RSwitch/Swift/MenuActions/BrowseMenuAction.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ class BrowseMenuAction {
4141

4242
private static let webItemsExt = [
4343
BrowseMenuAction(title: "R Package Documentation (rdrr.io)…", url: "https://rdrr.io/"),
44+
BrowseMenuAction(title: "R Compiler Tools for RCpp on macOS…", url: "https://thecoatlessprofessor.com/programming/cpp/r-compiler-tools-for-rcpp-on-macos/"),
4445
BrowseMenuAction(title: "Rseek…", url: "https://rseek.org"),
4546
BrowseMenuAction(title: "R StackOverflow…", url: "https://stackoverflow.com/questions/tagged/r"),
4647
BrowseMenuAction(title: "ROpenSci Discuss…", url: "https://discuss.ropensci.org/"),

releases/RSwitch-1.5.1.app.zip

3.84 MB
Binary file not shown.

0 commit comments

Comments
 (0)