remote-file: dev hot-reload compat fix

This commit is contained in:
jean-emmanuel 2019-03-31 18:48:13 +02:00
parent 788e18b7a3
commit 8c302c440f
3 changed files with 5 additions and 1 deletions

View file

@ -126,6 +126,7 @@ module.exports = {
ipc.send('storeBackup', {
backupId: id,
session: session.session || {},
sessionPath: session.sessionPath,
state: state.get(),
history: editor.history,
historyState: editor.historyState,
@ -176,6 +177,7 @@ module.exports = {
}
ipc.send('sessionSetPath', {path: data.sessionPath})
session.setSessionPath(data.sessionPath)
ipc.send('deleteBackup', data.backupId)
})

View file

@ -244,6 +244,9 @@ var SessionManager = class SessionManager {
setSessionPath(path) {
this.sessionPath = path
if (path) {
document.title = this.windowTitle + ' (' + path + ')'
}
}