Skip to content

Commit

Permalink
重构
Browse files Browse the repository at this point in the history
  • Loading branch information
Yuanuo committed Nov 28, 2022
1 parent 2aa63e1 commit 0342678
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 0 additions & 2 deletions app/src/main/java/org/appxi/smartlib/app/App.java
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@
import java.nio.file.Path;
import java.util.ArrayList;
import java.util.List;
import java.util.Locale;
import java.util.Optional;

public class App extends WorkbenchApp {
Expand All @@ -47,7 +46,6 @@ public static App app() {
public void init() throws Exception {
super.init();
//
Locale.setDefault(Locale.SIMPLIFIED_CHINESE);
new Thread(() -> {
WebPane.preloadLibrary();
BeansContext.setupInitialize(
Expand Down
2 changes: 2 additions & 0 deletions app/src/main/java/org/appxi/smartlib/app/AppLauncher.java
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,11 @@
import java.nio.file.Path;
import java.util.Date;
import java.util.List;
import java.util.Locale;

public class AppLauncher {
protected static void beforeLaunch(String dataDirName) {
Locale.setDefault(Locale.SIMPLIFIED_CHINESE);
// 0, set data home
UserPrefs.localDataDirectory((null != dataDirName ? dataDirName : ".".concat(App.ID)).concat(".d"), null);
// 由于在配置文件中不能使用动态变量作为路径,故在此设置日志文件路径
Expand Down
2 changes: 1 addition & 1 deletion app/src/main/java/org/appxi/smartlib/app/AppPreloader.java
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ public void start(Stage primaryStage) throws Exception {
//
setupChooser(primaryStage);
//
FontFaceHelper.fixing();
FontFaceHelper.fixFontFamilies();
//
if (OSVersions.isLinux || OSVersions.isMac) {
new javafx.scene.control.TextField("");
Expand Down

0 comments on commit 0342678

Please sign in to comment.