Skip to content

Commit 3bdb491

Browse files
committed
#545: removed notifier & listener and added refresh call to showDialog() instead
1 parent 498ed9e commit 3bdb491

File tree

2 files changed

+1
-5
lines changed

2 files changed

+1
-5
lines changed

src/org/aavso/tools/vstar/ui/dialog/StarSelectorDialog.java

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,6 @@
4242
import org.aavso.tools.vstar.ui.dialog.series.AIDSeriesSelectionPane;
4343
import org.aavso.tools.vstar.ui.mediator.Mediator;
4444
import org.aavso.tools.vstar.ui.mediator.message.StarGroupChangedMessage;
45-
import org.aavso.tools.vstar.ui.resources.StarGroups;
4645
import org.aavso.tools.vstar.util.Pair;
4746
import org.aavso.tools.vstar.util.date.AbstractDateUtil;
4847
import org.aavso.tools.vstar.util.help.Help;
@@ -155,8 +154,6 @@ private StarSelectorDialog() {
155154

156155
this.pack();
157156
starGroupSelectionPane.requestFocusInWindow();
158-
159-
StarGroups.getInstance().getNotifier().addListener(new UpdateListener());
160157
}
161158

162159
// Getters
@@ -667,6 +664,7 @@ public void reset() {
667664

668665
@Override
669666
public void showDialog() {
667+
starGroupSelectionPane.refreshGroups();
670668
super.showDialog();
671669
}
672670

src/org/aavso/tools/vstar/ui/resources/StarGroups.java

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,8 +75,6 @@ public StarGroups() {
7575
} catch (Throwable t) {
7676
// We need VStar to function in the absence of prefs.
7777
}
78-
79-
notifier = new Notifier<StarGroupChangedMessage>();
8078
}
8179

8280
public Notifier<StarGroupChangedMessage> getNotifier() {

0 commit comments

Comments
 (0)