@@ -67,7 +67,6 @@ import { useWorkflowTemplateSelectorDialog } from './useWorkflowTemplateSelector
6767const { isActiveSubscription, showSubscriptionDialog } = useSubscription ( )
6868
6969const moveSelectedNodesVersionAdded = '1.22.2'
70-
7170export function useCoreCommands ( ) : ComfyCommand [ ] {
7271 const workflowService = useWorkflowService ( )
7372 const workflowStore = useWorkflowStore ( )
@@ -79,13 +78,22 @@ export function useCoreCommands(): ComfyCommand[] {
7978 const executionStore = useExecutionStore ( )
8079 const telemetry = useTelemetry ( )
8180 const { staticUrls, buildDocsUrl } = useExternalLink ( )
81+ const settingStore = useSettingStore ( )
8282
8383 const bottomPanelStore = useBottomPanelStore ( )
8484
8585 const { getSelectedNodes, toggleSelectedNodesMode } =
8686 useSelectedLiteGraphItems ( )
8787 const getTracker = ( ) => workflowStore . activeWorkflow ?. changeTracker
8888
89+ function isQueuePanelV2Enabled ( ) {
90+ return settingStore . get ( 'Comfy.Queue.QPOV2' )
91+ }
92+
93+ async function toggleQueuePanelV2 ( ) {
94+ await settingStore . set ( 'Comfy.Queue.QPOV2' , ! isQueuePanelV2Enabled ( ) )
95+ }
96+
8997 const moveSelectedNodes = (
9098 positionUpdater : ( pos : Point , gridSize : number ) => Point
9199 ) => {
@@ -1191,6 +1199,12 @@ export function useCoreCommands(): ComfyCommand[] {
11911199 await useWorkflowService ( ) . reloadCurrentWorkflow ( ) // ensure changes take effect immediately
11921200 }
11931201 } ,
1202+ {
1203+ id : 'Comfy.ToggleQPOV2' ,
1204+ icon : 'pi pi-list' ,
1205+ label : 'Toggle Queue Panel V2' ,
1206+ function : toggleQueuePanelV2
1207+ } ,
11941208 {
11951209 id : 'Comfy.ToggleLinear' ,
11961210 icon : 'pi pi-database' ,
0 commit comments