Updated: miniWindow style & add reload button for app

This commit is contained in:
Molunerfinn 2019-01-21 16:46:33 +08:00
parent 22c7b9a170
commit 193946c469
2 changed files with 19 additions and 0 deletions

View File

@ -94,6 +94,13 @@ function createContextMenu () {
db.read().set('settings.showUpdateTip', !value).write() db.read().set('settings.showUpdateTip', !value).write()
} }
}, },
{
label: '重启应用',
click () {
app.relaunch()
app.exit(0)
}
},
{ {
role: 'quit', role: 'quit',
label: '退出' label: '退出'
@ -215,6 +222,7 @@ const createMiniWidow = () => {
show: true, show: true,
frame: false, frame: false,
fullscreenable: false, fullscreenable: false,
skipTaskbar: true,
resizable: false, resizable: false,
transparent: true, transparent: true,
icon: `${__static}/logo.png`, icon: `${__static}/logo.png`,

View File

@ -161,6 +161,17 @@ export default {
_this.$electron.ipcRenderer.send('uploadClipboardFilesFromUploadPage') _this.$electron.ipcRenderer.send('uploadClipboardFilesFromUploadPage')
} }
}, },
{
label: '最小化窗口',
role: 'minimize'
},
{
label: '重启应用',
click () {
_this.$electron.remote.app.relaunch()
_this.$electron.remote.app.exit(0)
}
},
{ {
role: 'quit', role: 'quit',
label: '退出' label: '退出'