| 761 | } |
| 762 | |
| 763 | void 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 | |
| 779 | void Client::closeRpcConnection() { |
| 780 | if (pipe_ != INVALID_HANDLE_VALUE) { |
nothing calls this directly
no test coverage detected