Minor modifications ready for release

This commit is contained in:
Melon 2022-05-10 15:14:05 +01:00
parent b8edecb7bb
commit c140844a71
Signed by: melon
GPG Key ID: B0ADD5395BCDAAB6
7 changed files with 9 additions and 6 deletions

View File

@ -1,6 +1,6 @@
package xyz.mrmelon54.codesize.callback;
import xyz.mrmelon54.codesize.utils.Preset;
import xyz.mrmelon54.codesize.process.Preset;
public interface PresetCallback {
void changePreset(Preset preset);

View File

@ -1,6 +1,7 @@
package xyz.mrmelon54.codesize.utils;
package xyz.mrmelon54.codesize.process;
import com.google.gson.Gson;
import xyz.mrmelon54.codesize.process.Preset;
import java.io.InputStream;
import java.io.InputStreamReader;

View File

@ -1,4 +1,4 @@
package xyz.mrmelon54.codesize.utils;
package xyz.mrmelon54.codesize.process;
import java.util.Objects;
import java.util.UUID;

View File

@ -2,7 +2,7 @@ package xyz.mrmelon54.codesize.ui;
import xyz.mrmelon54.codesize.CodeSize;
import xyz.mrmelon54.codesize.utils.ComponentUtils;
import xyz.mrmelon54.codesize.utils.Preset;
import xyz.mrmelon54.codesize.process.Preset;
import javax.swing.*;
import javax.swing.border.EmptyBorder;

View File

@ -5,7 +5,7 @@ import xyz.mrmelon54.codesize.CodeSize;
import xyz.mrmelon54.codesize.callback.PresetCallback;
import xyz.mrmelon54.codesize.components.JIconButton;
import xyz.mrmelon54.codesize.utils.Pair;
import xyz.mrmelon54.codesize.utils.Preset;
import xyz.mrmelon54.codesize.process.Preset;
import javax.swing.*;
import java.awt.*;

View File

@ -7,6 +7,6 @@ import java.util.Properties;
public class DirUtils {
public static String getConfigDir() {
Properties buildProps = BuildInfoUtils.getBuildProps();
return AppDirsFactory.getInstance().getUserConfigDir(buildProps.getProperty("appId"), buildProps.getProperty("appVersion"), buildProps.getProperty("appAuthor"));
return AppDirsFactory.getInstance().getUserConfigDir(buildProps.getProperty("appId"), "", buildProps.getProperty("appAuthor"));
}
}

View File

@ -4,6 +4,8 @@ import com.google.gson.Gson;
import com.google.gson.GsonBuilder;
import xyz.mrmelon54.codesize.enums.Theme;
import xyz.mrmelon54.codesize.ex.CannotCreateConfigFolderException;
import xyz.mrmelon54.codesize.process.BuiltinPresets;
import xyz.mrmelon54.codesize.process.Preset;
import java.io.*;
import java.util.*;