From 170a7e47310dcf244bc2a4157a6f06695490ec46 Mon Sep 17 00:00:00 2001 From: juliandescottes Date: Tue, 1 Aug 2017 22:47:53 +0200 Subject: [PATCH] skip backups for current session in browse backups dialog --- src/js/controller/dialogs/backups/steps/SelectSession.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/js/controller/dialogs/backups/steps/SelectSession.js b/src/js/controller/dialogs/backups/steps/SelectSession.js index a66f1785..2c3f3c0f 100644 --- a/src/js/controller/dialogs/backups/steps/SelectSession.js +++ b/src/js/controller/dialogs/backups/steps/SelectSession.js @@ -44,6 +44,10 @@ var sessionItemTemplate = pskl.utils.Template.get('session-list-item'); var html = ''; sessions.forEach(function (session) { + if (session.id === pskl.app.sessionId) { + // Do not show backups for the current session. + return; + } var view = { id: session.id, name: session.name,