diff --git a/easytier-gui/src/composables/tray.ts b/easytier-gui/src/composables/tray.ts index 67c731a8..acaa7d0d 100644 --- a/easytier-gui/src/composables/tray.ts +++ b/easytier-gui/src/composables/tray.ts @@ -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'), ] } diff --git a/easytier-gui/src/pages/index.vue b/easytier-gui/src/pages/index.vue index adfc5881..a61d28a2 100644 --- a/easytier-gui/src/pages/index.vue +++ b/easytier-gui/src/pages/index.vue @@ -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')), ]) }, },