This commit is contained in:
gac-x11ma
2025-09-18 13:55:56 +02:00
parent 0f8956cafe
commit d26d91d508
12 changed files with 96 additions and 76 deletions

View File

@@ -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);
}