Skip to content

Commit

Permalink
fix: restore scroll to folder on init (#234)
Browse files Browse the repository at this point in the history
  • Loading branch information
antonreshetov committed Aug 15, 2022
1 parent 23bb935 commit 3fb66e4
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/renderer/views/Main.vue
Expand Up @@ -13,6 +13,7 @@ import { useSnippetStore } from '@/store/snippets'
import { useTagStore } from '@/store/tags'
import { useAppStore } from '@/store/app'
import { computed } from 'vue'
import { emitter } from '@/composable'
const folderStore = useFolderStore()
const snippetStore = useSnippetStore()
Expand Down Expand Up @@ -44,6 +45,8 @@ const init = async () => {
snippetStore.setSnippetsByAlias(storedFolderAlias)
}
emitter.emit('scroll-to:folder', folderStore.selectedId!)
appStore.isInit = true
}
Expand Down

0 comments on commit 3fb66e4

Please sign in to comment.