Skip to content

Commit c07ca8e

Browse files
committed
Skip loading css from previous installation
1 parent ca817a4 commit c07ca8e

File tree

2 files changed

+10
-1
lines changed

2 files changed

+10
-1
lines changed

src/main/java/com/kodedu/config/ConfigurationBase.java

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,6 +122,10 @@ protected void saveJson(JsonStructure jsonStructure) {
122122

123123
public abstract Path getConfigPath();
124124

125+
public void loadPrevious(Path configPath, ActionEvent... actionEvent) {
126+
load(configPath, actionEvent);
127+
}
128+
125129
public abstract void load(Path configPath, ActionEvent... actionEvent);
126130

127131
public void load(ActionEvent... actionEvent) {
@@ -159,6 +163,6 @@ public void loadPreviousConfiguration(String configDir) {
159163
String userHome = System.getProperty("user.home");
160164
Path resolvedConfigPath = Paths.get(userHome).resolve(configDir).resolve(fileName);
161165

162-
load(resolvedConfigPath);
166+
loadPrevious(resolvedConfigPath);
163167
}
164168
}

src/main/java/com/kodedu/config/LocationConfigBean.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -154,6 +154,11 @@ public Path getConfigPath() {
154154
return super.resolveConfigPath("location_config.json");
155155
}
156156

157+
@Override
158+
public void loadPrevious(Path configPath, ActionEvent... actionEvent) {
159+
// Nothing to do
160+
}
161+
157162
@Override
158163
public void load(Path configPath, ActionEvent... actionEvent) {
159164

0 commit comments

Comments
 (0)