mirror of
https://github.com/Toxblh/MTMR.git
synced 2026-01-11 09:28:38 +00:00
del the quote
This commit is contained in:
parent
a6f27a1fef
commit
4b480dddc3
@ -27,14 +27,12 @@ class AppDelegate: NSObject, NSApplicationDelegate {
|
|||||||
}
|
}
|
||||||
|
|
||||||
@objc func testFn(_ sender: Any?) {
|
@objc func testFn(_ sender: Any?) {
|
||||||
let quoteText = "You click on menu"
|
|
||||||
let task = Process()
|
let task = Process()
|
||||||
let appSupportDirectory = NSSearchPathForDirectoriesInDomains(.applicationSupportDirectory, .userDomainMask, true).first!.appending("/MTMR")
|
let appSupportDirectory = NSSearchPathForDirectoriesInDomains(.applicationSupportDirectory, .userDomainMask, true).first!.appending("/MTMR")
|
||||||
let presetPath = appSupportDirectory.appending("/items.json")
|
let presetPath = appSupportDirectory.appending("/items.json")
|
||||||
task.launchPath = "/usr/bin/open"
|
task.launchPath = "/usr/bin/open"
|
||||||
task.arguments = [presetPath]
|
task.arguments = [presetPath]
|
||||||
task.launch()
|
task.launch()
|
||||||
print(quoteText)
|
|
||||||
}
|
}
|
||||||
|
|
||||||
func createMenu() {
|
func createMenu() {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user