Browse Source

Merge pull request #366 in BA/design from ~LEE/design:dev to dev

* commit '768c49fd4f4b2c3ea4c35bf55531cb8d690205bb':
  bugfix:QQ授权登陆之后,关闭设计器再登陆,用户名不显示
master
superman 8 years ago
parent
commit
50c7a97bdb
  1. 9
      designer/src/com/fr/design/mainframe/bbs/UserInfoPane.java

9
designer/src/com/fr/design/mainframe/bbs/UserInfoPane.java

@ -77,12 +77,11 @@ public class UserInfoPane extends BasicPane{
@Override
public void run() {
String username = DesignerEnvManager.getEnvManager().getBBSName();
String password = DesignerEnvManager.getEnvManager().getBBSPassword();
String loginResult = LoginWebBridge.getHelper().login(username, password);
if (loginResult.equals(LOGININ)) {
markSignIn(username);
}else {
String inShowUsername = DesignerEnvManager.getEnvManager().getInShowBBsName();
if (StringUtils.isEmpty(username) && StringUtils.isEmpty(inShowUsername)){
markUnSignIn();
} else {
markSignIn(username);
}
}
});

Loading…
Cancel
Save