Skip to content
Snippets Groups Projects
Commit f7f10cf9 authored by Alexis Durgnat's avatar Alexis Durgnat :milky_way:
Browse files

Minor cleanup

parent f82a9005
No related branches found
No related tags found
1 merge request!21*poof* final version
...@@ -256,6 +256,7 @@ public class MainWindowController implements Initializable { ...@@ -256,6 +256,7 @@ public class MainWindowController implements Initializable {
/** /**
* Create a new journey and broadcast it * Create a new journey and broadcast it
* Set the journey label and the current journey
* @param app App context * @param app App context
* @param pnl Panel containing the journey information * @param pnl Panel containing the journey information
*/ */
...@@ -283,17 +284,19 @@ public class MainWindowController implements Initializable { ...@@ -283,17 +284,19 @@ public class MainWindowController implements Initializable {
if (command.length > 1) { if (command.length > 1) {
Main.getContext().getUser().get().addIgnoredUser(new User(command[1])); Main.getContext().getUser().get().addIgnoredUser(new User(command[1]));
drawMessage(command[1] + " bloqué.", drawMessage(command[1] + " bloqué.",
"/img/help.png", c); AppConfig.HELP_MESSAGE_ICON, c);
} }
break; break;
case "ignoredlist": case "ignoredlist":
List<User> list = Main.getContext().getUser().get().getIgnoredUserList(); List<User> list = Main.getContext().getUser().get().getIgnoredUserList();
if (list.size() > 0) {
StringBuilder buffer = new StringBuilder(list.get(0).getName()); StringBuilder buffer = new StringBuilder(list.get(0).getName());
for (int i = 1; i < list.size(); i++){ for (int i = 1; i < list.size(); i++){
buffer.append(", ").append(list.get(i).getName()); buffer.append(", ").append(list.get(i).getName());
} }
drawMessage("Bloqués : " + buffer.toString(), drawMessage("Bloqués : " + buffer.toString(),
"/img/help.png", c); AppConfig.HELP_MESSAGE_ICON, c);
}
break; break;
} }
} else { } else {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment