allow for local settings in exports (octoprint, gridhost) to persist in workspace settings along side the existing localStorage

This commit is contained in:
Stewart Allen 2024-08-28 16:41:55 -04:00
commit c3efac5a59
2 changed files with 49 additions and 22 deletions

View file

@ -900,6 +900,7 @@ const conf = exports({
favorites:{},
// map of device to last process setting (name)
devproc: {},
// application ui and control preferences (Q menu)
controller:{
view: null,
dark: false,
@ -933,7 +934,7 @@ const conf = exports({
ortho: false,
devel: false
},
// hidden ui groups
// default hidden ui groups
hidden: {
"fdm-base": true,
"fdm-cool": true,
@ -941,7 +942,7 @@ const conf = exports({
"fdm-supp": true,
"fdm-xprt": true
},
// label state preferences
// label state preferences (slice/preview toggles)
labels: {
'CAM-3-arrows': false,
'FDM-3-engage': false,
@ -953,6 +954,8 @@ const conf = exports({
synth: {},
// widget extra info for slicing (extruder mapping)
widget: {},
// legacy localStorage settings (like octo print)
local: {},
mode: 'FDM',
id: genID(),
ver: CVER