Repo // Simplify conditions for updatePopupDisplayWithCursor().

This commit is contained in:
ShikiSuen 2023-06-20 09:10:05 +08:00
parent d271ec1a14
commit 2d3d0d3fc2
2 changed files with 2 additions and 6 deletions

View File

@ -433,10 +433,8 @@ public class InputHandler: InputHandlerProtocol {
theState.data.marker = inputting.marker theState.data.marker = inputting.marker
delegate.state = theState // switchState delegate.state = theState // switchState
delegate.setInlineDisplayWithCursor() delegate.setInlineDisplayWithCursor()
if delegate.clientMitigationLevel >= 2, theState.hasComposition {
delegate.updatePopupDisplayWithCursor() delegate.updatePopupDisplayWithCursor()
} }
}
// MARK: - Extracted methods and functions (Tekkon). // MARK: - Extracted methods and functions (Tekkon).

View File

@ -140,9 +140,7 @@ extension SessionCtl: CtlCandidateDelegate {
state.data.cursor = 0 state.data.cursor = 0
} }
setInlineDisplayWithCursor() setInlineDisplayWithCursor()
if clientMitigationLevel >= 2, state.hasComposition {
updatePopupDisplayWithCursor() updatePopupDisplayWithCursor()
}
default: break default: break
} }
} }