Skip to content

Commit

Permalink
Merge pull request #323 from PrefectHQ/reset-layout-settings
Browse files Browse the repository at this point in the history
Reset the settings on stop
  • Loading branch information
pleek91 authored Nov 8, 2023
2 parents 0bd44b0 + 4362bb6 commit ec52ce0
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/objects/settings.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,13 @@ export async function startSettings(): Promise<void> {
}

export function stopSettings(): void {
layout.horizontal = 'temporal'
layout.vertical = 'nearest-parent'
layout.horizontalScaleMultiplierDefault = 0
layout.horizontalScaleMultiplier = 0
layout.disableAnimations = false
layout.disableEdges = false
layout.disableGuides = false
}

export const layout = reactive<LayoutSettings>({
Expand Down

0 comments on commit ec52ce0

Please sign in to comment.