2
0

Avatar configuration & move preferences into user panel.

This commit is contained in:
Maarten Billemont
2018-07-26 15:07:37 -04:00
parent 7c83a62f91
commit e639137304
13 changed files with 196 additions and 168 deletions

View File

@@ -67,13 +67,13 @@ public class MPFileUserManager {
this.path = path;
}
public void reload() {
public ImmutableSortedSet<MPFileUser> reload() {
userByName.clear();
File[] pathFiles;
if ((!path.exists() && !path.mkdirs()) || ((pathFiles = path.listFiles()) == null)) {
logger.err( "Couldn't create directory for user files: %s", path );
return;
return getFiles();
}
for (final File file : pathFiles)
@@ -89,6 +89,8 @@ public class MPFileUserManager {
catch (final IOException | MPMarshalException e) {
logger.err( e, "Couldn't read user from: %s", file );
}
return getFiles();
}
public MPFileUser add(final String fullName) {