mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-08-07 08:15:48 +02:00
[181017] saving user id change
This commit is contained in:
parent
eafea435c9
commit
1604d47c7c
1 changed files with 2 additions and 3 deletions
|
@ -62,10 +62,9 @@ public abstract class AuthenticatingConnectorService extends AbstractConnectorSe
|
||||||
*/
|
*/
|
||||||
public final void setUserId(String newId) {
|
public final void setUserId(String newId) {
|
||||||
String oldUserId = credentialsProvider.getUserId();
|
String oldUserId = credentialsProvider.getUserId();
|
||||||
if (oldUserId == null || oldUserId.equals(newId)) {
|
if (oldUserId == null || !oldUserId.equals(newId)) {
|
||||||
updateDefaultUserId(getPrimarySubSystem(), getUserId());
|
|
||||||
credentialsProvider.setUserId(newId);
|
credentialsProvider.setUserId(newId);
|
||||||
setDirty(true);
|
saveUserId();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue