File tree Expand file tree Collapse file tree
src/main/java/com/xwintop/xJavaFxTool/controller Expand file tree Collapse file tree Original file line number Diff line number Diff line change 33import com .xwintop .xJavaFxTool .controller .index .PluginManageController ;
44import com .xwintop .xJavaFxTool .model .ToolFxmlLoaderConfiguration ;
55import com .xwintop .xJavaFxTool .services .IndexService ;
6+ import com .xwintop .xJavaFxTool .services .index .PluginManageService ;
67import com .xwintop .xJavaFxTool .utils .Config ;
78import com .xwintop .xJavaFxTool .utils .XJavaFxSystemUtil ;
89import com .xwintop .xJavaFxTool .view .IndexView ;
@@ -88,10 +89,13 @@ public boolean accept(File dir, String name) {
8889 });
8990 if (jarFiles != null ) {
9091 for (File jarFile : jarFiles ) {
92+ if (!PluginManageService .getPluginJarIsEnable (jarFile .getName ())) {
93+ continue ;
94+ }
9195 try {
9296 this .addToolMenu (jarFile );
9397 } catch (Exception e ) {
94- e . printStackTrace ( );
98+ log . error ( "加载工具出错:" , e );
9599 }
96100 }
97101 }
You can’t perform that action at this time.
0 commit comments