From dc7f4b3ffc0ed4d47dfb264f4e0cba306ba78027 Mon Sep 17 00:00:00 2001 From: JannisX11 Date: Fri, 26 May 2023 23:27:23 +0200 Subject: [PATCH] Add save_model_action event hook --- js/io/io.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/js/io/io.js b/js/io/io.js index 052c8941..8e4479f0 100644 --- a/js/io/io.js +++ b/js/io/io.js @@ -608,7 +608,7 @@ BARS.defineActions(function() { category: 'file', keybind: new Keybind({key: 's', ctrl: true}), condition: () => Project, - click: async function() { + click: async function(event) { if (isApp) { saveTextures() if (Format) { @@ -695,6 +695,7 @@ BARS.defineActions(function() { Project.saved = false; }*/ } + Blockbench.dispatchEvent('save_model_action', {event}); } }) if (!isApp) {