|
|
@ -4,6 +4,7 @@ |
|
|
|
package com.fr.design.mainframe.bbs; |
|
|
|
package com.fr.design.mainframe.bbs; |
|
|
|
|
|
|
|
|
|
|
|
import com.fr.base.FRContext; |
|
|
|
import com.fr.base.FRContext; |
|
|
|
|
|
|
|
import com.fr.config.DBEnv; |
|
|
|
import com.fr.config.ServerConfig; |
|
|
|
import com.fr.config.ServerConfig; |
|
|
|
import com.fr.design.DesignerEnvManager; |
|
|
|
import com.fr.design.DesignerEnvManager; |
|
|
|
import com.fr.design.constants.UIConstants; |
|
|
|
import com.fr.design.constants.UIConstants; |
|
|
@ -78,11 +79,13 @@ public class UserInfoPane extends BasicPane{ |
|
|
|
GeneralContext.addEnvChangedListener(new EnvChangedListener() { |
|
|
|
GeneralContext.addEnvChangedListener(new EnvChangedListener() { |
|
|
|
@Override |
|
|
|
@Override |
|
|
|
public void envChanged() { |
|
|
|
public void envChanged() { |
|
|
|
String username = ServerConfig.getInstance().getBbsUsername(); |
|
|
|
if (DBEnv.isDBEnvAvailable()) { |
|
|
|
if (StringUtils.isEmpty(username)){ |
|
|
|
String username = ServerConfig.getInstance().getBbsUsername(); |
|
|
|
markUnSignIn(); |
|
|
|
if (StringUtils.isEmpty(username)){ |
|
|
|
} else { |
|
|
|
markUnSignIn(); |
|
|
|
markSignIn(username); |
|
|
|
} else { |
|
|
|
|
|
|
|
markSignIn(username); |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
}); |
|
|
|
}); |
|
|
|