Skip to content

Commit

Permalink
fix(control): not allowed to open the control file of version 5
Browse files Browse the repository at this point in the history
  • Loading branch information
Vera-Firefly authored Aug 4, 2023
1 parent 471b838 commit 7d29667
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ public static CustomControls loadAndConvertIfNecessary(String jsonPath) throws I
CustomControls layout = LayoutConverter.convertV2Layout(layoutJobj);
layout.save(jsonPath);
return layout;
}else if (layoutJobj.getInt("version") == 3 || layoutJobj.getInt("version") == 4) {
}else if (layoutJobj.getInt("version") >= 3 && layoutJobj.getInt("version") <= 5) {
return Tools.GLOBAL_GSON.fromJson(jsonLayoutData, CustomControls.class);
}else{
return null;
Expand Down

0 comments on commit 7d29667

Please sign in to comment.