fix: saving off progress
This commit is contained in:
@ -12,6 +12,7 @@ export const TEST_SETTINGS: DeepPartial<Settings> = {
|
|||||||
},
|
},
|
||||||
onboarding_status: 'dismissed',
|
onboarding_status: 'dismissed',
|
||||||
show_debug_panel: true,
|
show_debug_panel: true,
|
||||||
|
fixed_size_grid: false
|
||||||
},
|
},
|
||||||
modeling: {
|
modeling: {
|
||||||
enable_ssao: false,
|
enable_ssao: false,
|
||||||
|
@ -208,6 +208,15 @@ export function createSettings() {
|
|||||||
inputType: 'boolean',
|
inputType: 'boolean',
|
||||||
},
|
},
|
||||||
}),
|
}),
|
||||||
|
fixedSizeGrid: new Setting<boolean>({
|
||||||
|
defaultValue: true,
|
||||||
|
hideOnLevel:'project',
|
||||||
|
description: 'dog',
|
||||||
|
validate: (v) => typeof v === 'boolean',
|
||||||
|
commandConfig: {
|
||||||
|
inputType: 'boolean',
|
||||||
|
},
|
||||||
|
}),
|
||||||
/**
|
/**
|
||||||
* Stream resource saving behavior toggle
|
* Stream resource saving behavior toggle
|
||||||
*/
|
*/
|
||||||
|
@ -66,6 +66,7 @@ export function configurationToSettingsPayload(
|
|||||||
configuration?.settings?.app?.allow_orbit_in_sketch_mode,
|
configuration?.settings?.app?.allow_orbit_in_sketch_mode,
|
||||||
projectDirectory: configuration?.settings?.project?.directory,
|
projectDirectory: configuration?.settings?.project?.directory,
|
||||||
showDebugPanel: configuration?.settings?.app?.show_debug_panel,
|
showDebugPanel: configuration?.settings?.app?.show_debug_panel,
|
||||||
|
fixedSizeGrid: configuration?.settings?.app?.fixed_size_grid
|
||||||
},
|
},
|
||||||
modeling: {
|
modeling: {
|
||||||
defaultUnit: configuration?.settings?.modeling?.base_unit,
|
defaultUnit: configuration?.settings?.modeling?.base_unit,
|
||||||
@ -109,6 +110,7 @@ export function settingsPayloadToConfiguration(
|
|||||||
stream_idle_mode: configuration?.app?.streamIdleMode,
|
stream_idle_mode: configuration?.app?.streamIdleMode,
|
||||||
allow_orbit_in_sketch_mode: configuration?.app?.allowOrbitInSketchMode,
|
allow_orbit_in_sketch_mode: configuration?.app?.allowOrbitInSketchMode,
|
||||||
show_debug_panel: configuration?.app?.showDebugPanel,
|
show_debug_panel: configuration?.app?.showDebugPanel,
|
||||||
|
fixed_size_grid: configuration?.app?.fixedSizeGrid
|
||||||
},
|
},
|
||||||
modeling: {
|
modeling: {
|
||||||
base_unit: configuration?.modeling?.defaultUnit,
|
base_unit: configuration?.modeling?.defaultUnit,
|
||||||
|
Reference in New Issue
Block a user