mirror of
https://mirror.suhoan.cn/https://github.com/EasyTier/EasyTier.git
synced 2025-12-12 12:47:25 +08:00
tray: place the exit menu item at bottom (#1291)
This commit is contained in:
@@ -53,9 +53,9 @@ export async function useTray(init: boolean = false) {
|
|||||||
|
|
||||||
export async function generateMenuItem() {
|
export async function generateMenuItem() {
|
||||||
return [
|
return [
|
||||||
await MenuItemExit('Exit'),
|
|
||||||
await PredefinedMenuItem.new({ item: 'Separator' }),
|
|
||||||
await MenuItemShow('Show / Hide'),
|
await MenuItemShow('Show / Hide'),
|
||||||
|
await PredefinedMenuItem.new({ item: 'Separator' }),
|
||||||
|
await MenuItemExit('Exit'),
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -144,8 +144,8 @@ onMounted(async () => {
|
|||||||
|
|
||||||
window.setTimeout(async () => {
|
window.setTimeout(async () => {
|
||||||
await setTrayMenu([
|
await setTrayMenu([
|
||||||
await MenuItemExit(t('tray.exit')),
|
|
||||||
await MenuItemShow(t('tray.show')),
|
await MenuItemShow(t('tray.show')),
|
||||||
|
await MenuItemExit(t('tray.exit')),
|
||||||
])
|
])
|
||||||
}, 1000)
|
}, 1000)
|
||||||
})
|
})
|
||||||
@@ -165,8 +165,8 @@ const setting_menu_items = ref([
|
|||||||
command: async () => {
|
command: async () => {
|
||||||
await I18nUtils.loadLanguageAsync((locale.value === 'en' ? 'cn' : 'en'))
|
await I18nUtils.loadLanguageAsync((locale.value === 'en' ? 'cn' : 'en'))
|
||||||
await setTrayMenu([
|
await setTrayMenu([
|
||||||
await MenuItemExit(t('tray.exit')),
|
|
||||||
await MenuItemShow(t('tray.show')),
|
await MenuItemShow(t('tray.show')),
|
||||||
|
await MenuItemExit(t('tray.exit')),
|
||||||
])
|
])
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user