File tree Expand file tree Collapse file tree 1 file changed +1
-23
lines changed Expand file tree Collapse file tree 1 file changed +1
-23
lines changed Original file line number Diff line number Diff line change 5252public class JxBrowserManager {
5353 private static JxBrowserManager manager ;
5454
55- private static String getPluginLoaderDir () {
56- try {
57- final ApplicationInfo info = ApplicationInfo .getInstance ();
58- assert info != null ;
59- if (Objects .equals (info .getMajorVersion (), "2021" )) {
60- if (Objects .equals (info .getMinorVersion (), "3" )) {
61- return "flutter-idea" ;
62- }
63- else {
64- return "flutter-intellij" ;
65- }
66- }
67- else if (Objects .equals (info .getMajorVersion (), "2020" )) {
68- return "flutter-intellij" ;
69- }
70- }
71- catch (NullPointerException ex ) {
72- // ignored; unit tests
73- }
74- return "flutter-idea" ;
75- }
76-
7755 @ NotNull
7856 protected static final String DOWNLOAD_PATH =
79- PathManager .getPluginsPath () + File .separatorChar + getPluginLoaderDir () + File .separatorChar + "jxbrowser" ;
57+ PathManager .getPluginsPath () + File .separatorChar + "flutter-intellij" + File .separatorChar + "jxbrowser" ;
8058 @ NotNull
8159 private static final AtomicReference <JxBrowserStatus > status = new AtomicReference <>(JxBrowserStatus .NOT_INSTALLED );
8260 @ NotNull
You can’t perform that action at this time.
0 commit comments