Fix: open config => config folder
This commit is contained in:
parent
521b9d41c2
commit
6e960b1437
@ -127,6 +127,7 @@ class AppDelegate: NSObject, NSApplicationDelegate {
|
||||
}
|
||||
|
||||
func failLaunchProtect(){
|
||||
return
|
||||
let x = UserDefaults.standard
|
||||
var launch_fail_times:Int = 0
|
||||
if let xx = x.object(forKey: "launch_fail_times") as? Int {launch_fail_times = xx }
|
||||
@ -263,7 +264,7 @@ class AppDelegate: NSObject, NSApplicationDelegate {
|
||||
}
|
||||
|
||||
@IBAction func openConfigFolder(_ sender: Any) {
|
||||
let path = (NSHomeDirectory() as NSString).appendingPathComponent("/.config/clash/config.ini")
|
||||
let path = (NSHomeDirectory() as NSString).appendingPathComponent("/.config/clash")
|
||||
NSWorkspace.shared.openFile(path)
|
||||
}
|
||||
|
||||
|
@ -1,8 +1,8 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<document type="com.apple.InterfaceBuilder3.Cocoa.Storyboard.XIB" version="3.0" toolsVersion="14313.3.2" targetRuntime="MacOSX.Cocoa" propertyAccessControl="none" useAutolayout="YES">
|
||||
<document type="com.apple.InterfaceBuilder3.Cocoa.Storyboard.XIB" version="3.0" toolsVersion="14113" targetRuntime="MacOSX.Cocoa" propertyAccessControl="none" useAutolayout="YES">
|
||||
<dependencies>
|
||||
<deployment identifier="macosx"/>
|
||||
<plugIn identifier="com.apple.InterfaceBuilder.CocoaPlugin" version="14313.3.2"/>
|
||||
<plugIn identifier="com.apple.InterfaceBuilder.CocoaPlugin" version="14113"/>
|
||||
</dependencies>
|
||||
<scenes>
|
||||
<!--Application-->
|
||||
@ -106,7 +106,7 @@
|
||||
</items>
|
||||
</menu>
|
||||
</menuItem>
|
||||
<menuItem title="Open config file" id="DwE-WX-ETZ">
|
||||
<menuItem title="Open config Folder" id="DwE-WX-ETZ">
|
||||
<modifierMask key="keyEquivalentModifierMask"/>
|
||||
<connections>
|
||||
<action selector="openConfigFolder:" target="Voe-Tx-rLC" id="6Ke-Bi-AAZ"/>
|
||||
|
Loading…
Reference in New Issue
Block a user