From fc42949830eb1781b12626b1cfa86fb8c8e03745 Mon Sep 17 00:00:00 2001 From: Abdullah Alfaraj Date: Sun, 9 Jul 2023 19:20:54 +0300 Subject: [PATCH] rename 'Continue Session' btn to 'Reuse Selection' --- index.js | 2 +- selection.js | 2 ++ typescripts/session/generate.tsx | 9 +++++---- typescripts/session/modes.ts | 10 +++++----- utility/notification.js | 9 ++++++--- 5 files changed, 19 insertions(+), 13 deletions(-) diff --git a/index.js b/index.js index d34d5c1..9f61997 100644 --- a/index.js +++ b/index.js @@ -1276,7 +1276,7 @@ function pastImage2Layer() { ], { synchronousExecution: true, - modalBehavior: 'fail', + modalBehavior: 'execute', } ) }, diff --git a/selection.js b/selection.js index 2a34013..f57afe6 100644 --- a/selection.js +++ b/selection.js @@ -1111,11 +1111,13 @@ async function black_white_layer_to_mask_multi_batchplay( await timer(g_timer_value) await executeAsModal(async () => { + await layer_util.toggleActiveLayer() // toggle active layer will be visible, note: doesn't solve the issue in outpaint mode result = await psAction.batchPlay(command2, {}) }) await timer(g_timer_value) await executeAsModal(async () => { + await layer_util.toggleActiveLayer() // undo the toggling operation, active layer will be visible, note: doesn't solve the issue in outpaint mode result = await psAction.batchPlay(command3, {}) }) } diff --git a/typescripts/session/generate.tsx b/typescripts/session/generate.tsx index 3bd4319..d526759 100644 --- a/typescripts/session/generate.tsx +++ b/typescripts/session/generate.tsx @@ -92,7 +92,7 @@ const ToolbarGenerateButtons = observer(() => { return (