File tree Expand file tree Collapse file tree 2 files changed +19
-10
lines changed
java/com/shuzijun/leetcode/plugin/actions Expand file tree Collapse file tree 2 files changed +19
-10
lines changed Original file line number Diff line number Diff line change 1
1
package com .shuzijun .leetcode .plugin .actions ;
2
2
3
3
import com .intellij .openapi .actionSystem .AnActionEvent ;
4
+ import com .intellij .openapi .application .ApplicationManager ;
4
5
import com .shuzijun .leetcode .plugin .manager .ViewManager ;
5
6
import com .shuzijun .leetcode .plugin .model .Config ;
6
7
import com .shuzijun .leetcode .plugin .setting .PersistentConfig ;
@@ -62,20 +63,28 @@ public void perform(AnActionEvent anActionEvent, Config config) {
62
63
}
63
64
}
64
65
65
- LoginFrame loginFrame = new LoginFrame (anActionEvent .getProject (),tree );
66
+ LoginFrame loginFrame = new LoginFrame (anActionEvent .getProject (), tree );
66
67
if (URLUtils .leetcodecn .equals (URLUtils .getLeetcodeHost ())) {
67
- if (!loginFrame .ajaxLogin (config )){
68
- loginFrame .loadComponent ();
69
- loginFrame .show ();
68
+ if (!loginFrame .ajaxLogin (config )) {
69
+ ApplicationManager .getApplication ().invokeLater (new Runnable () {
70
+ @ Override
71
+ public void run () {
72
+ loginFrame .loadComponent ();
73
+ loginFrame .show ();
74
+ }
75
+ });
70
76
}
71
77
} else {
72
- loginFrame .loadComponent ();
73
- loginFrame .show ();
78
+ ApplicationManager .getApplication ().invokeLater (new Runnable () {
79
+ @ Override
80
+ public void run () {
81
+ loginFrame .loadComponent ();
82
+ loginFrame .show ();
83
+ }
84
+ });
74
85
}
75
86
76
87
}
77
88
78
89
79
-
80
-
81
90
}
Original file line number Diff line number Diff line change 114
114
<change-notes ><![CDATA[
115
115
<ul>
116
116
<li>v6.0<br>
117
- 1.修改leetcode.com登录方式, <a href="https://github.com/shuzijun/leetcode-editor/blob/master/LoginHelp_ZH.md">参考</a><br>
117
+ 1.修改leetcode.com登录方式, <a href="https://github.com/shuzijun/leetcode-editor/blob/master/doc/ LoginHelp_ZH.md">参考</a><br>
118
118
2.修复快捷键无法使用问题<br>
119
119
3.修复题目名称不展示中文问题<br>
120
120
4.增加提交时自动保存<br>
123
123
7.优化题目描述超长<br>
124
124
</li>
125
125
<li>v6.0<br>
126
- 1.Modify leetcode.com login method, <a href="https://github.com/shuzijun/leetcode-editor/blob/master/LoginHelp_ZH.md">help</a><br>
126
+ 1.Modify leetcode.com login method, <a href="https://github.com/shuzijun/leetcode-editor/blob/master/doc/ LoginHelp_ZH.md">help</a><br>
127
127
2.Fix the problem that the shortcut keys cannot be used<br>
128
128
3.Fix the problem that the title name does not show Chinese<br>
129
129
4.Automatically save when adding commits<br>
You can’t perform that action at this time.
0 commit comments