Skip to content

Commit 6d1b9a7

Browse files
authored
Merge pull request #735 from quoid/revert-731-feat/do-not-open-safari-when-change-save-location
Revert "feat(macos): do not open safari when change save location"
2 parents 9248fa4 + 8fad473 commit 6d1b9a7

File tree

1 file changed

+8
-10
lines changed

1 file changed

+8
-10
lines changed

xcode/App-Mac/ViewController.swift

Lines changed: 8 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -65,16 +65,14 @@ class ViewController: NSViewController {
6565
// update user interface text display
6666
self.saveLocation.stringValue = url.absoluteString
6767
self.saveLocation.toolTip = url.absoluteString
68-
// notify browser extension of relevant updates only when Safari is running
69-
if !NSRunningApplication.runningApplications(withBundleIdentifier: "com.apple.Safari").isEmpty {
70-
sendExtensionMessage(
71-
name: "SAVE_LOCATION_CHANGED",
72-
userInfo: [
73-
"saveLocation": url.absoluteString.removingPercentEncoding ?? url.absoluteString,
74-
"returnApp": true
75-
]
76-
)
77-
}
68+
// notify browser extension of relevant updates
69+
sendExtensionMessage(
70+
name: "SAVE_LOCATION_CHANGED",
71+
userInfo: [
72+
"saveLocation": url.absoluteString.removingPercentEncoding ?? url.absoluteString,
73+
"returnApp": true
74+
]
75+
)
7876
})
7977
}
8078

0 commit comments

Comments
 (0)