Skip to content

Commit

Permalink
wip: KWindow does not take into accound an initial state #962
Browse files Browse the repository at this point in the history
  • Loading branch information
cnouguier committed Sep 30, 2024
1 parent 02fa190 commit 4130ecd
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions core/client/components/layout/KWindow.vue
Original file line number Diff line number Diff line change
Expand Up @@ -409,8 +409,11 @@ function onFooterResized (size) {
// restore the state
const currentState = currentWindow.state
const fallbackState = readState() || 'pinned'
refresh(currentState || fallbackState)
if (currentState) refresh(currentState)
else {
const fallbackState = readState() || 'pinned'
Layout.setWindowState(props.placement, fallbackState)
}
</script>

<style lang="scss" scoped>
Expand Down

0 comments on commit 4130ecd

Please sign in to comment.