This commit is contained in:
@@ -3,14 +3,13 @@ import ch.psi.pshell.console.App;
|
||||
import ch.psi.pshell.framework.Context;
|
||||
import ch.psi.pshell.framework.Setup;
|
||||
import ch.psi.pshell.framework.Panel;
|
||||
import ch.psi.pshell.notification.NotificationManager.NotificationLevel;
|
||||
import ch.psi.pshell.notification.Notifier.NotificationLevel;
|
||||
import ch.psi.pshell.utils.State;
|
||||
import ch.psi.pshell.swing.SwingUtils;
|
||||
import ch.psi.pshell.swing.SwingUtils.OptionResult;
|
||||
import ch.psi.pshell.swing.SwingUtils.OptionType;
|
||||
import java.io.IOException;
|
||||
import java.util.logging.Level;
|
||||
import java.util.logging.Logger;
|
||||
import javax.swing.SwingUtilities;
|
||||
|
||||
/**
|
||||
@@ -138,7 +137,7 @@ public class Settings extends Panel {
|
||||
try {
|
||||
updatingControls = true;
|
||||
comboNotification.setSelectedItem(App.getInstance().getConfig().notificationLevel);
|
||||
textRecipients.setText(Context.getNotificationManager().getConfig().to);
|
||||
textRecipients.setText(Context.getNotifier().getConfig().to);
|
||||
} finally {
|
||||
updatingControls = false;
|
||||
}
|
||||
@@ -834,8 +833,8 @@ public class Settings extends Panel {
|
||||
}
|
||||
}
|
||||
App.getInstance().getConfig().notificationLevel =level;
|
||||
Context.getNotificationManager().setRecipients(to.split(";"));
|
||||
Context.getNotificationManager().initialize(); //Remove this when fix setRecipients
|
||||
Context.getNotifier().setRecipients(to.split(";"));
|
||||
Context.getNotifier().initialize(); //Remove this when fix setRecipients
|
||||
} catch (Exception ex) {
|
||||
showException(ex);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user