1
0
mirror of https://github.com/gnosygnu/xowa.git synced 2026-03-02 03:49:30 +00:00

Gui: Update colors dynamically when changed from options screen

This commit is contained in:
gnosygnu
2017-03-05 11:41:18 -05:00
parent e77916a02e
commit ae9a00fade
7 changed files with 101 additions and 55 deletions

View File

@@ -54,7 +54,7 @@ public class Err_ {
public static String Message_gplx_full(Exception e) {return Cast_or_make(e).To_str__full();}
public static String Message_gplx_log(Exception e) {return Cast_or_make(e).To_str__log();}
public static String Message_lang(Throwable e) {
return (e.getClass() == Error.class)
return Error.class.isAssignableFrom(e.getClass())
? e.toString() // error has null for "getMessage()" return "toString()" instead
: e.getMessage();
}