Fix some leak and typo.
This commit is contained in:
4 files changed
+20
-11
No files matched your search
@@ -1,12 +1,12 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<document type="com.apple.InterfaceBuilder3.Cocoa.XIB" version="3.0" toolsVersion="13771" targetRuntime="MacOSX.Cocoa" propertyAccessControl="none" useAutolayout="YES">
|
||||
<document type="com.apple.InterfaceBuilder3.Cocoa.XIB" version="3.0" toolsVersion="14101" targetRuntime="MacOSX.Cocoa" propertyAccessControl="none" useAutolayout="YES">
|
||||
<dependencies>
|
||||
<deployment identifier="macosx"/>
|
||||
<plugIn identifier="com.apple.InterfaceBuilder.CocoaPlugin" version="13771"/>
|
||||
<plugIn identifier="com.apple.InterfaceBuilder.CocoaPlugin" version="14101"/>
|
||||
<capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/>
|
||||
</dependencies>
|
||||
<objects>
|
||||
<customObject id="-2" userLabel="File's Owner" customClass="SBSoundViewController">
|
||||
<customObject id="-2" userLabel="File's Owner" customClass="SoundViewController" customModule="Subler" customModuleProvider="target">
|
||||
<connections>
|
||||
<outlet property="alternateGroup" destination="hO4-U9-j72" id="7J3-sK-j8c"/>
|
||||
<outlet property="fallbacksPopUp" destination="kyn-qq-nF7" id="myr-hC-bw0"/>
|
||||
@@ -111,7 +111,7 @@
|
||||
</popUpButtonCell>
|
||||
<connections>
|
||||
<accessibilityConnection property="title" destination="AHt-fF-cmH" id="xln-Xh-ghS"/>
|
||||
<action selector="seTracktFallback:" target="-2" id="w1b-yu-Mre"/>
|
||||
<action selector="setTrackFallback:" target="-2" id="dW2-e8-n1H"/>
|
||||
</connections>
|
||||
</popUpButton>
|
||||
<textField verticalHuggingPriority="750" preferredMaxLayoutWidth="200" translatesAutoresizingMaskIntoConstraints="NO" id="Wwd-LM-Zu2">
|
||||
|
||||
@@ -63,7 +63,7 @@ class SoundViewController : NSViewController {
|
||||
if isAAC(track: audioTrack) {
|
||||
let trackID = audioTrack.trackId > 0 ? String(audioTrack.trackId) : "na"
|
||||
let item = NSMenuItem(title: "\(trackID) - \(audioTrack.name) - \(langs.localizedLang(forExtendedTag: audioTrack.language))",
|
||||
action: #selector(seTrackFallback(_:)),
|
||||
action: #selector(setTrackFallback(_:)),
|
||||
keyEquivalent: "")
|
||||
item.target = self
|
||||
item.representedObject = audioTrack
|
||||
@@ -116,7 +116,7 @@ class SoundViewController : NSViewController {
|
||||
}
|
||||
}
|
||||
|
||||
@IBAction func seTrackFallback(_ sender: NSMenuItem) {
|
||||
@IBAction func setTrackFallback(_ sender: NSMenuItem) {
|
||||
if let newFallbackTrack = sender.representedObject as? MP42AudioTrack {
|
||||
if newFallbackTrack != track.fallbackTrack {
|
||||
track.fallbackTrack = newFallbackTrack
|
||||
|
||||
Reference in new issue
Block a user