Ensure VC's are detached when leaving details

This commit is contained in:
Bryan Ashby 2017-09-02 15:56:47 -06:00
parent a642a271b4
commit f0d6eb5847
1 changed files with 7 additions and 1 deletions

View File

@ -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) => {