only allow bbl manage on user customized device

This commit is contained in:
Stewart Allen 2025-02-02 18:41:33 -05:00
commit a7df775f62
3 changed files with 4 additions and 3 deletions

View file

@ -1,5 +1,6 @@
#!/bin/bash #!/bin/bash
tag=${1:-latest} tag=${1:-latest}
npm run clear-cache
./bin/build-upload win ${tag} && \ ./bin/build-upload win ${tag} && \
./bin/build-upload linux ${tag} && \ ./bin/build-upload linux ${tag} && \
./bin/build-upload mac ${tag} ./bin/build-upload mac ${tag}

View file

@ -661,7 +661,7 @@ self.kiri.load(api => {
if (!bound) { if (!bound) {
return; return;
} }
if (devsel.extras?.bbl) { if (devsel.extras?.bbl && !api.ui.deviceSave.disabled) {
device = devsel; device = devsel;
printers = devsel.extras.bbl; printers = devsel.extras.bbl;
bound.bblman.classList.remove('hide'); bound.bblman.classList.remove('hide');
@ -684,7 +684,7 @@ self.kiri.load(api => {
} }
function prep_export(gen3mf, gcode, info, settings) { function prep_export(gen3mf, gcode, info, settings) {
if (!settings.device.extras?.bbl) { if (!settings.device.extras?.bbl || api.ui.deviceSave.disabled) {
$('bambu-output').style.display = 'none'; $('bambu-output').style.display = 'none';
return; return;
} }

View file

@ -87,7 +87,7 @@
"mklinks": "find src web -type l | xargs -I{} sh -c 'echo \"{},$(readlink {})\"' > links.csv", "mklinks": "find src web -type l | xargs -I{} sh -c 'echo \"{},$(readlink {})\"' > links.csv",
"mac-verify": "spctl --assess -vv --type install dist/*/*.app", "mac-verify": "spctl --assess -vv --type install dist/*/*.app",
"clear-cache": "rm -rf tmp/* data/cache/*", "clear-cache": "rm -rf tmp/* data/cache/*",
"prebuild": "npm run clear-cache; node bin/electron-pre.js", "prebuild": "node bin/electron-pre.js",
"postbuild": "node bin/electron-post.js", "postbuild": "node bin/electron-post.js",
"preinstall": "node bin/install-pre.js; npx webpack --config bin/webpack-three.js" "preinstall": "node bin/install-pre.js; npx webpack --config bin/webpack-three.js"
}, },