mirror of
https://github.com/curioustorvald/Terrarum.git
synced 2026-03-07 20:31:51 +09:00
set selected ime to none if previously selected one is not found on the local copy
This commit is contained in:
@@ -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();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user