Skip to content

Commit 3fb66e4

Browse files
fix: restore scroll to folder on init (#234)
1 parent 23bb935 commit 3fb66e4

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

src/renderer/views/Main.vue

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ import { useSnippetStore } from '@/store/snippets'
1313
import { useTagStore } from '@/store/tags'
1414
import { useAppStore } from '@/store/app'
1515
import { computed } from 'vue'
16+
import { emitter } from '@/composable'
1617
1718
const folderStore = useFolderStore()
1819
const snippetStore = useSnippetStore()
@@ -44,6 +45,8 @@ const init = async () => {
4445
snippetStore.setSnippetsByAlias(storedFolderAlias)
4546
}
4647
48+
emitter.emit('scroll-to:folder', folderStore.selectedId!)
49+
4750
appStore.isInit = true
4851
}
4952

0 commit comments

Comments
 (0)