MCPcopy Create free account
hub / github.com/EasyIME/PIME / resetTextServiceState

Method resetTextServiceState

PIMETextService/PIMEClient.cpp:763–777  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

761}
762
763void Client::resetTextServiceState() {
764 // we lost connection while being activated previously
765 // re-initialize the whole text service.
766
767 // cleanup for the previous instance.
768 // remove all buttons
769
770 // some language bar buttons are not unregistered properly
771 if (!buttons_.empty()) {
772 for (auto& item : buttons_) {
773 textService_->removeButton(item.second);
774 }
775 buttons_.clear();
776 }
777}
778
779void Client::closeRpcConnection() {
780 if (pipe_ != INVALID_HANDLE_VALUE) {

Callers

nothing calls this directly

Calls 3

removeButtonMethod · 0.80
emptyMethod · 0.45
clearMethod · 0.45

Tested by

no test coverage detected