Change the URL if the name changed

This commit is contained in:
0xboobface 2018-11-07 13:51:26 +01:00
parent ba0cc591d3
commit 8b7bb79d8c
1 changed files with 1 additions and 0 deletions

View File

@ -213,6 +213,7 @@ public class MyFreeCamsModel extends AbstractModel {
public void setName(String name) {
if(getName() != null && name != null && !getName().equals(name)) {
LOG.debug("Model name changed {} -> {}", getName(), name);
setUrl("https://profiles.myfreecams.com/" + name);
}
super.setName(name);
}