Skip to content

Commit

Permalink
Release 2.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
RedDragon0293 committed Jun 6, 2024
1 parent bf406ab commit 689d135
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 5 deletions.
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ plugins {
}

group 'cn.reddragon'
version '1.4.0'
version '2.0.0'

repositories {
mavenCentral()
Expand Down
6 changes: 4 additions & 2 deletions src/main/java/cn/reddragon/eportal/Main.java
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,12 @@
import org.apache.logging.log4j.Logger;

public class Main {
public static Logger logger = LogManager.getLogger("EPortal");
public static final String name = "EPortal";
public static final String version = "2.0.0";
public static Logger logger = LogManager.getLogger(name);

public static void main(String[] args) {
Thread.currentThread().setName("EPortal Main");
Thread.currentThread().setName(name + " Main");
MainWindow.main(args);
}
}
3 changes: 2 additions & 1 deletion src/main/java/cn/reddragon/eportal/config/ConfigManager.java
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
package cn.reddragon.eportal.config;

import cn.reddragon.eportal.Main;
import cn.reddragon.eportal.config.configs.AccountConfig;
import cn.reddragon.eportal.config.configs.AutoReconnectConfig;
import cn.reddragon.eportal.config.configs.NetTypeConfig;
Expand All @@ -14,7 +15,7 @@

public class ConfigManager {
public static final Gson gson = new GsonBuilder().setPrettyPrinting().create();
private static final File configFile = new File("EPortal.json");
private static final File configFile = new File(Main.name + ".json");
private static final ArrayList<AbstractConfig> configs = new ArrayList<>();
private static final Logger logger = LogManager.getLogger("ConfigManager");
private static final int configVersion = 2;
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/cn/reddragon/eportal/window/MainWindow.java
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ public void start(Stage stage) throws IOException {
Parent root = fxmlLoader.load();
controller = fxmlLoader.getController();
Scene scene = new Scene(root);
stage.setTitle("EPortal");
stage.setTitle(Main.name + " " + Main.version);
stage.setScene(scene);
ConfigManager.loadConfigs();
AccountWindow.init(stage);
Expand Down

0 comments on commit 689d135

Please sign in to comment.