mirror of
https://github.com/marktext/marktext.git
synced 2025-05-02 19:59:41 +08:00
Merge 1a9b121786
into 11c8cc1e19
This commit is contained in:
commit
0ba64daf05
@ -16,14 +16,14 @@ autoUpdater.on('error', error => {
|
||||
|
||||
autoUpdater.on('update-available', () => {
|
||||
if (win) {
|
||||
win.webContents.send('mt::UPDATE_AVAILABLE', 'Found an update, do you want download and install now?')
|
||||
win.webContents.send('mt::UPDATE_AVAILABLE', 'New version is now available. Download and install?')
|
||||
}
|
||||
runningUpdate = false
|
||||
})
|
||||
|
||||
autoUpdater.on('update-not-available', () => {
|
||||
if (win) {
|
||||
win.webContents.send('mt::UPDATE_NOT_AVAILABLE', 'Current version is up-to-date.')
|
||||
win.webContents.send('mt::UPDATE_NOT_AVAILABLE', 'There are currently no updates available')
|
||||
}
|
||||
runningUpdate = false
|
||||
})
|
||||
@ -33,7 +33,7 @@ autoUpdater.on('update-downloaded', () => {
|
||||
// not just force close the application.
|
||||
|
||||
if (win) {
|
||||
win.webContents.send('mt::UPDATE_DOWNLOADED', 'Update downloaded, application will be quit for update...')
|
||||
win.webContents.send('mt::UPDATE_DOWNLOADED', 'Update downloaded. MarkText will now close and update')
|
||||
}
|
||||
setImmediate(() => autoUpdater.quitAndInstall())
|
||||
})
|
||||
|
@ -95,6 +95,9 @@ export default {
|
||||
closeAll () {
|
||||
this.$store.dispatch('CLOSE_ALL_TABS')
|
||||
},
|
||||
changeMaxWidth (width) {
|
||||
this.$store.dispatch('CHANGE_SIDE_BAR_WIDTH', width)
|
||||
},
|
||||
rename (tabId) {
|
||||
const tab = this.tabs.find(f => f.id === tabId)
|
||||
if (tab && tab.pathname) {
|
||||
@ -128,6 +131,7 @@ export default {
|
||||
bus.$on('TABS::rename', this.rename)
|
||||
bus.$on('TABS::copy-path', this.copyPath)
|
||||
bus.$on('TABS::show-in-folder', this.showInFolder)
|
||||
bus.$on('EDITOR_TABS::change-max-width', this.changeMaxWidth)
|
||||
})
|
||||
},
|
||||
mounted () {
|
||||
|
Loading…
Reference in New Issue
Block a user