From f0d6eb58476e54e8797d1a292d056811d4d709fd Mon Sep 17 00:00:00 2001 From: Bryan Ashby Date: Sat, 2 Sep 2017 15:56:47 -0600 Subject: [PATCH] Ensure VC's are detached when leaving details --- mods/file_area_list.js | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/mods/file_area_list.js b/mods/file_area_list.js index 5b8a89fc..2da02cc9 100644 --- a/mods/file_area_list.js +++ b/mods/file_area_list.js @@ -115,7 +115,13 @@ exports.getModule = class FileAreaList extends MenuModule { return this.displayDetailsPage(cb); }, detailsQuit : (formData, extraArgs, cb) => { - this.viewControllers.details.setFocus(false); + [ 'detailsNfo', 'detailsFileList', 'details' ].forEach(n => { + const vc = this.viewControllers[n]; + if(vc) { + vc.detachClientEvents(); + } + }); + return this.displayBrowsePage(true, cb); // true=clearScreen }, toggleQueue : (formData, extraArgs, cb) => {