11package com .xwintop .xJavaFxTool .newui ;
22
33import com .xwintop .xJavaFxTool .Main ;
4+ import com .xwintop .xJavaFxTool .controller .IndexController ;
45import com .xwintop .xJavaFxTool .controller .index .PluginManageController ;
56import com .xwintop .xJavaFxTool .model .PluginJarInfo ;
67import com .xwintop .xJavaFxTool .plugin .PluginManager ;
1516import javafx .fxml .FXMLLoader ;
1617import javafx .scene .Parent ;
1718import javafx .scene .layout .VBox ;
19+ import javafx .scene .web .WebView ;
1820import lombok .extern .slf4j .Slf4j ;
1921
2022@ Slf4j
2123public class NewLauncherController {
2224
2325 public VBox pluginCategories ;
2426
27+ public WebView startWebView ;
28+
2529 public void openConfigDialog () {
2630 SystemSettingService .openSystemSettings ("设置" );
2731 }
@@ -46,10 +50,7 @@ public void initialize() {
4650 for (PluginJarInfo jarInfo : pluginList ) {
4751 String menuParentTitle = jarInfo .getMenuParentTitle ();
4852 if (menuParentTitle != null ) {
49-
5053 String categoryName = menuResourceBundle .getString (menuParentTitle );
51- String pluginName = jarInfo .getName ();
52-
5354 PluginCategoryController category = categoryControllers .computeIfAbsent (
5455 categoryName , __ -> {
5556 PluginCategoryController _category =
@@ -63,6 +64,8 @@ public void initialize() {
6364 category .addItem (item );
6465 }
6566 }
67+
68+ startWebView .getEngine ().load (IndexController .QQ_URL );
6669 }
6770
6871 private void addCategory (PluginCategoryController category ) {
0 commit comments