Skip to content

Commit 3842bb7

Browse files
authored
Merge pull request #54 from shuzijun/dev
1.fix login warn 2.fix favorite icon
2 parents 5768918 + 42d1cfa commit 3842bb7

File tree

2 files changed

+11
-3
lines changed

2 files changed

+11
-3
lines changed

resources/META-INF/plugin.xml

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<idea-plugin>
22
<id>leetcode-editor</id>
33
<name>leetcode editor</name>
4-
<version>5.0</version>
4+
<version>5.1</version>
55
<vendor email="shuzijun0109@gmail.com" url="https://github.com/shuzijun/idea-leetcode-plugin">shuzijun</vendor>
66

77
<description><![CDATA[
@@ -113,6 +113,14 @@
113113

114114
<change-notes><![CDATA[
115115
<ul>
116+
<li>v5.1<br>
117+
1.修复登陆提示<br>
118+
2.修复favorite图标<br>
119+
</li>
120+
<li>v5.1<br>
121+
1.fix login warn<br>
122+
2.fix favorite icon<br>
123+
</li>
116124
<li>v5.0<br>
117125
1.增加代码自定义生成(<a href="https://github.com/shuzijun/leetcode-editor/blob/master/CustomCode_ZH.md">详细介绍</a>)(<a href="https://github.com/shuzijun/leetcode-question">示例</a>)<br>
118126
2.增加查看题目描述(依赖 Markdown)<br>
@@ -354,7 +362,7 @@
354362
<reference id="leetcode.TestcaseAction"/>
355363
<separator/>
356364
<group id="leetcode.FavoriteGroup" class="com.shuzijun.leetcode.plugin.actions.FavoriteActionGroup"
357-
popup="true" text="Favorite" description="Favorite" icon="AllIcons.General.OpenDiskHover">
365+
popup="true" text="Favorite" description="Favorite" icon="AllIcons.Actions.Menu_open">
358366
</group>
359367
<reference id="leetcode.ClearOneAction"/>
360368
</group>

src/com/shuzijun/leetcode/plugin/actions/LoginAction.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ public void perform(AnActionEvent anActionEvent, Config config) {
4848
}
4949
}
5050

51-
if (StringUtils.isBlank(config.getLoginName()) || StringUtils.isBlank(config.getLoginName())) {
51+
if (StringUtils.isBlank(config.getLoginName()) || StringUtils.isBlank(PersistentConfig.getInstance().getPassword())) {
5252
MessageUtils.showWarnMsg("info", PropertiesUtils.getInfo("config.user"));
5353
return;
5454
}

0 commit comments

Comments
 (0)