SessionCtl // Disable reloading on hotkey-toggling cassette mode.

- ... unless it is not loaded.
This commit is contained in:
ShikiSuen 2022-10-20 23:45:33 +08:00
parent d5fbcf5e2c
commit d35b958f16
1 changed files with 4 additions and 1 deletions

View File

@ -6,6 +6,7 @@
// marks, or product names of Contributor, except as required to fulfill notice
// requirements defined in MIT License.
import LangModelAssembly
import NotifierUI
import SSPreferences
import UpdateSputnik
@ -249,7 +250,9 @@ extension SessionCtl {
? NSLocalizedString("NotificationSwitchON", comment: "")
: NSLocalizedString("NotificationSwitchOFF", comment: ""))
)
LMMgr.loadCassetteData()
if !LMMgr.currentLM().currentCassette.isLoaded {
LMMgr.loadCassetteData()
}
}
@objc public func toggleSCPCTypingMode(_: Any? = nil) {