set selected ime to none if previously selected one is not found on the local copy

This commit is contained in:
minjaesong
2021-11-12 23:11:26 +09:00
parent fa53bb75b4
commit 3c321b466e

View File

@@ -843,6 +843,11 @@ public class App implements ApplicationListener {
tileMaker.invoke(false);
IME.invoke();
// check if selected IME is accessible; if not, set selected IME to none
String selectedIME = getConfigString("inputmethod");
if (!selectedIME.equals("none") && !IME.INSTANCE.getAllHighLayers().contains(selectedIME)) {
setConfig("inputmethod", "none");
}
Terrarum.initialise();