avoid exception on preview

dbus-notify
Zlatin Balevsky 2022-06-25 11:18:51 +01:00
parent 3e51bca077
commit 172632b304
No known key found for this signature in database
GPG Key ID: A72832072D525E41
2 changed files with 1 additions and 7 deletions

View File

@ -281,7 +281,7 @@ class MainFrameController {
def downloader = downloads.get(0)
def params = [:]
params['downloader'] = downloader
mvcGroup.createMVCGroup("download-preview", params)
mvcGroup.createMVCGroup("download-preview", params).destroy()
}
@ControllerAction

View File

@ -44,12 +44,6 @@ class DownloadPreviewView {
dialog.setResizable(false)
dialog.setLocationRelativeTo(mainFrame)
dialog.setDefaultCloseOperation(JDialog.DISPOSE_ON_CLOSE)
dialog.addWindowListener(new WindowAdapter() {
public void windowClosed(WindowEvent e) {
mainFrame.setVisible(false)
mvcGroup.destroy()
}
})
}
void mvcGroupInit(Map<String, String> args) {