tray: place the exit menu item at bottom (#1291)

This commit is contained in:
fanyang
2025-08-25 12:47:43 +08:00
committed by GitHub
parent 3299a77da3
commit e29206aef9
2 changed files with 4 additions and 4 deletions

View File

@@ -53,9 +53,9 @@ export async function useTray(init: boolean = false) {
export async function generateMenuItem() {
return [
await MenuItemExit('Exit'),
await PredefinedMenuItem.new({ item: 'Separator' }),
await MenuItemShow('Show / Hide'),
await PredefinedMenuItem.new({ item: 'Separator' }),
await MenuItemExit('Exit'),
]
}

View File

@@ -144,8 +144,8 @@ onMounted(async () => {
window.setTimeout(async () => {
await setTrayMenu([
await MenuItemExit(t('tray.exit')),
await MenuItemShow(t('tray.show')),
await MenuItemExit(t('tray.exit')),
])
}, 1000)
})
@@ -165,8 +165,8 @@ const setting_menu_items = ref([
command: async () => {
await I18nUtils.loadLanguageAsync((locale.value === 'en' ? 'cn' : 'en'))
await setTrayMenu([
await MenuItemExit(t('tray.exit')),
await MenuItemShow(t('tray.show')),
await MenuItemExit(t('tray.exit')),
])
},
},