mirror of
https://github.com/piskelapp/piskel.git
synced 2023-08-10 21:12:52 +03:00
skip backups for current session in browse backups dialog
This commit is contained in:
parent
6b7f04b63e
commit
170a7e4731
@ -44,6 +44,10 @@
|
|||||||
var sessionItemTemplate = pskl.utils.Template.get('session-list-item');
|
var sessionItemTemplate = pskl.utils.Template.get('session-list-item');
|
||||||
var html = '';
|
var html = '';
|
||||||
sessions.forEach(function (session) {
|
sessions.forEach(function (session) {
|
||||||
|
if (session.id === pskl.app.sessionId) {
|
||||||
|
// Do not show backups for the current session.
|
||||||
|
return;
|
||||||
|
}
|
||||||
var view = {
|
var view = {
|
||||||
id: session.id,
|
id: session.id,
|
||||||
name: session.name,
|
name: session.name,
|
||||||
|
Loading…
Reference in New Issue
Block a user