feat: Add print to command palette, p=#11696

* Add print to command palette

* Do not show print command on empty tab
This commit is contained in:
Dennis Koch
2025-12-22 20:26:52 +01:00
committed by GitHub
parent 578c28df92
commit 2cc545762e

View File

@@ -183,6 +183,14 @@ const globalActionsTemplate = [
return lazy.currentTheme !== 0;
},
},
{
label: 'Print',
command: 'cmd_print',
icon: 'chrome://browser/skin/zen-icons/print.svg',
isAvailable: (window) => {
return isNotEmptyTab(window);
},
},
];
export const globalActions = globalActionsTemplate.map((action) => ({