Ability to remove window handlers added from the drive

This commit is contained in:
yflory
2019-09-17 11:33:09 +02:00
parent b58b6fa691
commit f17cdcda9f
2 changed files with 165 additions and 150 deletions

View File

@@ -89,7 +89,9 @@ define([
APP.module.execCommand('SUBSCRIBE', null, function () {
sframeChan.query('Q_SET_TEAM', null, function (err) {
if (err) { return void console.error(err); }
if (APP.drive && APP.drive.close) { APP.drive.close(); }
APP.team = null;
APP.drive = null;
APP.buildUI(common);
});
});
@@ -206,6 +208,7 @@ define([
updateSharedFolders: updateSharedFolders,
APP: driveAPP
});
APP.drive = drive;
driveAPP.refresh = drive.refresh;
});
};