Commit 4e026e5
authored
fix: Fix NoSuchMethodError in Hop Web when changing GUI options (#6546)
Display.isSystemDarkTheme() method is not available in Eclipse RAP (Web environment).
Calling this method causes java.lang.NoSuchMethodError exception when users
try to change locale or other GUI options in Hop Web.
Changes:
- Add EnvironmentUtils.getInstance().isWeb() check in ConfigGuiOptionsTab.java
- In reloadValues(): use stored dark mode preference in Web environment
- In saveValues(): use checkbox selection value in Web environment
This fix allows Hop Web users to change locale and GUI settings without errors.1 parent 6bb4217 commit 4e026e5
File tree
1 file changed
+14
-5
lines changed- ui/src/main/java/org/apache/hop/ui/hopgui/perspective/configuration/tabs
1 file changed
+14
-5
lines changedLines changed: 14 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
32 | 32 | | |
33 | 33 | | |
34 | 34 | | |
| 35 | + | |
35 | 36 | | |
36 | 37 | | |
37 | 38 | | |
| |||
165 | 166 | | |
166 | 167 | | |
167 | 168 | | |
168 | | - | |
169 | | - | |
170 | | - | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
171 | 175 | | |
172 | 176 | | |
173 | 177 | | |
| |||
941 | 945 | | |
942 | 946 | | |
943 | 947 | | |
944 | | - | |
945 | | - | |
| 948 | + | |
| 949 | + | |
| 950 | + | |
| 951 | + | |
| 952 | + | |
| 953 | + | |
| 954 | + | |
946 | 955 | | |
947 | 956 | | |
948 | 957 | | |
| |||
0 commit comments