Merge pull request #6138 from wschaeferB/6648-StopPlayingWhenDiscoveryCloses

6648 stop playing when discovery closes
This commit is contained in:
Ann Priestman 2020-07-26 10:10:46 -04:00 committed by GitHub
commit 7225e3e41d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -143,6 +143,7 @@ public final class DiscoveryTopComponent extends TopComponent {
@Override @Override
protected void componentClosed() { protected void componentClosed() {
DiscoveryDialog.getDiscoveryDialogInstance().cancelSearch(); DiscoveryDialog.getDiscoveryDialogInstance().cancelSearch();
DiscoveryEventUtils.getDiscoveryEventBus().post(new DiscoveryEventUtils.ClearInstanceSelectionEvent());
DiscoveryEventUtils.getDiscoveryEventBus().unregister(this); DiscoveryEventUtils.getDiscoveryEventBus().unregister(this);
DiscoveryEventUtils.getDiscoveryEventBus().unregister(groupListPanel); DiscoveryEventUtils.getDiscoveryEventBus().unregister(groupListPanel);
DiscoveryEventUtils.getDiscoveryEventBus().unregister(resultsPanel); DiscoveryEventUtils.getDiscoveryEventBus().unregister(resultsPanel);