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 {
|
||||
didSet {
|
||||
LMMgr.setCassetteEnabled(cassetteEnabled) // 很重要
|
||||
LMMgr.loadCassetteData()
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -78,7 +78,6 @@ struct VwrPrefPaneCassette: View {
|
|||
PrefMgr.shared.cassettePath = url.path
|
||||
tbxCassettePath = PrefMgr.shared.cassettePath
|
||||
BookmarkManager.shared.saveBookmark(for: url)
|
||||
LMMgr.loadCassetteData()
|
||||
} else {
|
||||
IMEApp.buzz()
|
||||
if !bolPreviousPathValidity {
|
||||
|
|
|
@ -325,7 +325,6 @@ class CtlPrefWindow: NSWindowController {
|
|||
if LMMgr.checkCassettePathValidity(url.path) {
|
||||
PrefMgr.shared.cassettePath = url.path
|
||||
BookmarkManager.shared.saveBookmark(for: url)
|
||||
LMMgr.loadCassetteData()
|
||||
} else {
|
||||
IMEApp.buzz()
|
||||
if !bolPreviousPathValidity {
|
||||
|
|
Loading…
Reference in New Issue