remote-file: dev hot-reload compat fix
This commit is contained in:
parent
ab4f9e976b
commit
dde3c63f38
3 changed files with 5 additions and 1 deletions
|
|
@ -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)
|
||||
|
||||
})
|
||||
|
|
|
|||
|
|
@ -244,6 +244,9 @@ var SessionManager = class SessionManager {
|
|||
setSessionPath(path) {
|
||||
|
||||
this.sessionPath = path
|
||||
if (path) {
|
||||
document.title = this.windowTitle + ' (' + path + ')'
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue