diff --git a/src/main/menu/actions/marktext.js b/src/main/menu/actions/marktext.js index 8ec9eeea..597d61c1 100644 --- a/src/main/menu/actions/marktext.js +++ b/src/main/menu/actions/marktext.js @@ -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()) }) diff --git a/src/renderer/components/editorWithTabs/tabs.vue b/src/renderer/components/editorWithTabs/tabs.vue index 6352c0f5..a33c5424 100644 --- a/src/renderer/components/editorWithTabs/tabs.vue +++ b/src/renderer/components/editorWithTabs/tabs.vue @@ -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 () {