Remove deleted pads from the drive

This commit is contained in:
yflory
2018-01-25 17:54:21 +01:00
parent e50b99d5f7
commit 9a317018e2
10 changed files with 96 additions and 43 deletions

View File

@@ -2975,6 +2975,14 @@ define([
refresh();
UI.removeLoadingScreen();
sframeChan.query('Q_DRIVE_GETDELETED', null, function (err, data) {
var ids = filesOp.findChannels(data);
ids.forEach(function (id) {
var paths = filesOp.findFile(id);
filesOp.delete(paths, refresh);
});
});
};
var setHistory = function (bool, update) {
@@ -3091,7 +3099,6 @@ define([
throw new Error("Corrupted drive");
}
andThen(common, proxy);
UI.removeLoadingScreen();
var onDisconnect = APP.onDisconnect = function (noAlert) {
setEditable(false);