mirror of
https://github.com/carlrobertoh/ProxyAI.git
synced 2026-05-12 14:10:29 +00:00
fix: general settings isModified state
This commit is contained in:
parent
08cb81dabf
commit
b059aeac6c
2 changed files with 5 additions and 1 deletions
|
|
@ -35,6 +35,6 @@ public class YouSettings implements PersistentStateComponent<YouSettingsState> {
|
|||
public boolean isModified(YouSettingsForm form) {
|
||||
var password = YouCredentialManager.getInstance().getCredential();
|
||||
return !form.getCurrentState().equals(state)
|
||||
|| !StringUtils.equals(form.getPassword(), password);
|
||||
|| (!form.getEmail().isEmpty() && !StringUtils.equals(form.getPassword(), password));
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue