From 1f2f0e9e3a2ff4917938af2d714638675c193f61 Mon Sep 17 00:00:00 2001 From: blurymind Date: Sat, 16 Nov 2019 16:19:15 +0000 Subject: [PATCH] add better name for dynamic palette copies --- src/js/controller/dialogs/CreatePaletteController.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/js/controller/dialogs/CreatePaletteController.js b/src/js/controller/dialogs/CreatePaletteController.js index c04cf9ef..e9e35430 100644 --- a/src/js/controller/dialogs/CreatePaletteController.js +++ b/src/js/controller/dialogs/CreatePaletteController.js @@ -44,9 +44,10 @@ var uuid = pskl.utils.Uuid.generate(); if (paletteId == Constants.CURRENT_COLORS_PALETTE_ID) { - palette = new pskl.model.Palette(uuid, 'Current colors clone', this.getCurrentColors_()); + palette = new pskl.model.Palette(uuid, 'File colors copy', this.getCurrentColors_()); } else if (paletteId == Constants.CURRENT_FRAME_COLORS_PALETTE_ID) { - palette = new pskl.model.Palette(uuid, 'Current frame colors clone', this.getCurrentFrameColors_()); + var frameId = pskl.app.piskelController.getCurrentFrameIndex() + 1; + palette = new pskl.model.Palette(uuid, 'frame:' + frameId + ' colors copy', this.getCurrentFrameColors_()); } else { palette = new pskl.model.Palette(uuid, 'New palette', []); }