Skip to content

Commit

Permalink
fix: changing colour scheme opens dashboard
Browse files Browse the repository at this point in the history
  • Loading branch information
mrmagic2020 committed Jun 22, 2024
1 parent 0cb6b60 commit 5639e9f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/ui/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1873,9 +1873,10 @@ function updateColourScheme(type: number, colour: Colour) {
windowParams.colours[type] = colour
}
// Reopen the window with the new colour scheme
let needsReopen = isOpen
windowTemplate.close()
windowTemplate = window(windowParams)
open()
if (needsReopen) windowTemplate.open()
}

function init(): void {
Expand Down

0 comments on commit 5639e9f

Please sign in to comment.