mirror of
https://github.com/marktext/marktext.git
synced 2025-05-02 15:21:33 +08:00
Initialize editor when loading a folder and show default tab (#729)
This commit is contained in:
parent
b4c23d1f02
commit
44c537a62c
@ -106,6 +106,9 @@ const mutations = {
|
||||
const actions = {
|
||||
LISTEN_FOR_LOAD_PROJECT ({ commit, dispatch }) {
|
||||
ipcRenderer.on('AGANI::open-project', (e, { pathname, name }) => {
|
||||
// Initialize editor and show empty/new tab
|
||||
dispatch('NEW_BLANK_FILE')
|
||||
|
||||
dispatch('INIT_STATUS', true)
|
||||
commit('SET_PROJECT_TREE', { pathname, name })
|
||||
commit('SET_LAYOUT', {
|
||||
|
Loading…
Reference in New Issue
Block a user