Pull in the version from the user's sketchbook folder, or if none exists, use the setting from preferences.
()
| 87 | * or if none exists, use the setting from preferences. |
| 88 | */ |
| 89 | static public void reload() { |
| 90 | if (!loadSketchbookFile()) { |
| 91 | String prefTheme = Preferences.get("theme"); |
| 92 | try { |
| 93 | File prefFile = new File(getThemeFolder(), prefTheme); |
| 94 | if (prefFile.exists()) { |
| 95 | theme.load(prefFile); |
| 96 | } |
| 97 | } catch (IOException e) { |
| 98 | Messages.showWarning("Theme Reload Problem", |
| 99 | "Error while reloading the theme. Please report.", e); |
| 100 | } |
| 101 | } |
| 102 | } |
| 103 | |
| 104 | |
| 105 | /** |
no test coverage detected