File tree Expand file tree Collapse file tree 1 file changed +10
-1
lines changed
Expand file tree Collapse file tree 1 file changed +10
-1
lines changed Original file line number Diff line number Diff line change 5757 @click =" () => commandStore.execute('Comfy.Canvas.ToggleLinkVisibility')"
5858 />
5959 <Button
60- v-tooltip.left =" t('graphCanvasMenu.toggleMinimap') + ' (Alt + m)' "
60+ v-tooltip.left =" minimapTooltip "
6161 severity =" secondary"
6262 :icon =" 'pi pi-map'"
6363 :aria-label =" $t('graphCanvasMenu.toggleMinimap')"
@@ -77,14 +77,23 @@ import { useI18n } from 'vue-i18n'
7777
7878import { useCommandStore } from ' @/stores/commandStore'
7979import { useCanvasStore } from ' @/stores/graphStore'
80+ import { useKeybindingStore } from ' @/stores/keybindingStore'
8081import { useSettingStore } from ' @/stores/settingStore'
8182
8283const { t } = useI18n ()
8384const commandStore = useCommandStore ()
8485const canvasStore = useCanvasStore ()
86+ const keybindingStore = useKeybindingStore ()
8587const settingStore = useSettingStore ()
8688
8789const minimapVisible = computed (() => settingStore .get (' Comfy.Minimap.Visible' ))
90+ const minimapTooltip = computed (() => {
91+ const baseText = t (' graphCanvasMenu.toggleMinimap' )
92+ const keybinding = keybindingStore .getKeybindingByCommandId (
93+ ' Comfy.Canvas.ToggleMinimap'
94+ )
95+ return keybinding ? ` ${baseText } (${keybinding .combo .toString ()}) ` : baseText
96+ })
8897const linkHidden = computed (
8998 () => settingStore .get (' Comfy.LinkRenderMode' ) === LiteGraph .HIDDEN_LINK
9099)
You can’t perform that action at this time.
0 commit comments