Ensure VC's are detached when leaving details
This commit is contained in:
parent
a642a271b4
commit
f0d6eb5847
|
@ -115,7 +115,13 @@ exports.getModule = class FileAreaList extends MenuModule {
|
||||||
return this.displayDetailsPage(cb);
|
return this.displayDetailsPage(cb);
|
||||||
},
|
},
|
||||||
detailsQuit : (formData, extraArgs, 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
|
return this.displayBrowsePage(true, cb); // true=clearScreen
|
||||||
},
|
},
|
||||||
toggleQueue : (formData, extraArgs, cb) => {
|
toggleQueue : (formData, extraArgs, cb) => {
|
||||||
|
|
Loading…
Reference in New Issue