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