mirror of
https://github.com/octopusYan/alist-gui.git
synced 2024-11-10 06:26:43 +08:00
chore: clean up
This commit is contained in:
parent
654b13e150
commit
be7e17665f
@ -150,12 +150,6 @@ public class Context {
|
|||||||
return LANGUAGE_RESOURCE_FACTORY.getResourceBundleProperty();
|
return LANGUAGE_RESOURCE_FACTORY.getResourceBundleProperty();
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* 初始化 语言
|
|
||||||
*/
|
|
||||||
private static void initI18n() {
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 有此类所在路径决定相对路径
|
* 有此类所在路径决定相对路径
|
||||||
*
|
*
|
||||||
@ -183,7 +177,6 @@ public class Context {
|
|||||||
private static void loadScene() {
|
private static void loadScene() {
|
||||||
try {
|
try {
|
||||||
FXMLLoader loader = FxmlUtil.load("root-view");
|
FXMLLoader loader = FxmlUtil.load("root-view");
|
||||||
loader.setControllerFactory(Context.getControlFactory());
|
|
||||||
//底层面板
|
//底层面板
|
||||||
Pane root = loader.load();
|
Pane root = loader.load();
|
||||||
Optional.ofNullable(scene).ifPresentOrElse(
|
Optional.ofNullable(scene).ifPresentOrElse(
|
||||||
|
@ -25,7 +25,7 @@ public class FxmlUtil {
|
|||||||
FxmlUtil.class.getResource(prefix + name + suffix),
|
FxmlUtil.class.getResource(prefix + name + suffix),
|
||||||
bundle,
|
bundle,
|
||||||
new JavaFXBuilderFactory(),
|
new JavaFXBuilderFactory(),
|
||||||
null,
|
Context.getControlFactory(),
|
||||||
StandardCharsets.UTF_8
|
StandardCharsets.UTF_8
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
@ -43,7 +43,6 @@ public class Registry {
|
|||||||
RESTORE,
|
RESTORE,
|
||||||
SAVE,
|
SAVE,
|
||||||
UNLOAD,
|
UNLOAD,
|
||||||
;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public enum Root {
|
public enum Root {
|
||||||
@ -75,6 +74,5 @@ public class Registry {
|
|||||||
REG_LINK,
|
REG_LINK,
|
||||||
REG_FULL_RESOURCE_DESCRIPTOR,
|
REG_FULL_RESOURCE_DESCRIPTOR,
|
||||||
REG_EXPAND_SZ,
|
REG_EXPAND_SZ,
|
||||||
;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user