session: update server-side sessionpath on import and do it after successful import only
This commit is contained in:
parent
a83b4e4ab2
commit
55a9beabf8
1 changed files with 4 additions and 2 deletions
|
|
@ -222,8 +222,10 @@ var SessionManager = class SessionManager {
|
|||
new Popup({title: locales('session_parsingerror'), content: err, icon: 'exclamation-triangle', closable:true})
|
||||
}
|
||||
if (editor.unsavedSession && !confirm(locales('session_unsaved'))) return
|
||||
if (session) sessionManager.load(session)
|
||||
ipc.trigger('setTitle', 'imported')
|
||||
if (session) sessionManager.load(session, ()=>{
|
||||
ipc.send('sessionSetPath', {path: 'imported'})
|
||||
})
|
||||
|
||||
}, ()=>{
|
||||
new Popup({title: locales('error'), content: locales('session_uploaderror'), icon: 'exclamation-triangle', closable:true})
|
||||
})
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue