PrefMgr // Remove redundant LMMgr.loadCassetteData().
This commit is contained in:
parent
78af4b72c2
commit
60b3fcf625
|
@ -193,7 +193,6 @@ public class PrefMgr: PrefMgrProtocol {
|
||||||
public var cassetteEnabled: Bool {
|
public var cassetteEnabled: Bool {
|
||||||
didSet {
|
didSet {
|
||||||
LMMgr.setCassetteEnabled(cassetteEnabled) // 很重要
|
LMMgr.setCassetteEnabled(cassetteEnabled) // 很重要
|
||||||
LMMgr.loadCassetteData()
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -78,7 +78,6 @@ struct VwrPrefPaneCassette: View {
|
||||||
PrefMgr.shared.cassettePath = url.path
|
PrefMgr.shared.cassettePath = url.path
|
||||||
tbxCassettePath = PrefMgr.shared.cassettePath
|
tbxCassettePath = PrefMgr.shared.cassettePath
|
||||||
BookmarkManager.shared.saveBookmark(for: url)
|
BookmarkManager.shared.saveBookmark(for: url)
|
||||||
LMMgr.loadCassetteData()
|
|
||||||
} else {
|
} else {
|
||||||
IMEApp.buzz()
|
IMEApp.buzz()
|
||||||
if !bolPreviousPathValidity {
|
if !bolPreviousPathValidity {
|
||||||
|
|
|
@ -325,7 +325,6 @@ class CtlPrefWindow: NSWindowController {
|
||||||
if LMMgr.checkCassettePathValidity(url.path) {
|
if LMMgr.checkCassettePathValidity(url.path) {
|
||||||
PrefMgr.shared.cassettePath = url.path
|
PrefMgr.shared.cassettePath = url.path
|
||||||
BookmarkManager.shared.saveBookmark(for: url)
|
BookmarkManager.shared.saveBookmark(for: url)
|
||||||
LMMgr.loadCassetteData()
|
|
||||||
} else {
|
} else {
|
||||||
IMEApp.buzz()
|
IMEApp.buzz()
|
||||||
if !bolPreviousPathValidity {
|
if !bolPreviousPathValidity {
|
||||||
|
|
Loading…
Reference in New Issue