Program won't start with some older configuration files due to different

format of themes
This commit is contained in:
bancika
2020-06-01 11:55:29 +02:00
parent 951bb1247d
commit 25d9ff302f
2 changed files with 10 additions and 1 deletions
@@ -116,8 +116,13 @@ public class DrawingManager {
this.messageDispatcher = messageDispatcher; this.messageDispatcher = messageDispatcher;
this.configManager = configManager; this.configManager = configManager;
try {
this.theme = (Theme) configManager.readObject(IPlugInPort.THEME_KEY, this.theme = (Theme) configManager.readObject(IPlugInPort.THEME_KEY,
Constants.DEFAULT_THEME); Constants.DEFAULT_THEME);
} catch (Exception e) {
LOG.error("Error loading theme", e);
this.theme = Constants.DEFAULT_THEME;
}
componentAreaMap = new HashMap<IDIYComponent<?>, ComponentArea>(); componentAreaMap = new HashMap<IDIYComponent<?>, ComponentArea>();
lastDrawnStateMap = new HashMap<IDIYComponent<?>, ComponentState>(); lastDrawnStateMap = new HashMap<IDIYComponent<?>, ComponentState>();
@@ -3138,6 +3138,10 @@
<changeType>BUG_FIX</changeType> <changeType>BUG_FIX</changeType>
<description>"Outline Mode" produces rendering issues when "Cache Boost" feature is enabled</description> <description>"Outline Mode" produces rendering issues when "Cache Boost" feature is enabled</description>
</org.diylc.appframework.update.Change> </org.diylc.appframework.update.Change>
<org.diylc.appframework.update.Change>
<changeType>BUG_FIX</changeType>
<description>Program won't start with some older configuration files due to different format of themes</description>
</org.diylc.appframework.update.Change>
</changes> </changes>
<url>https://github.com/bancika/diy-layout-creator/releases</url> <url>https://github.com/bancika/diy-layout-creator/releases</url>
</org.diylc.appframework.update.Version> </org.diylc.appframework.update.Version>