Fix inconsistencies in max/unmaximize window buttons

Also adds maximize action to command palette
This commit is contained in:
ProjectInfinity
2023-12-05 23:45:51 +01:00
parent 843675a056
commit aa7d91f2c5
2 changed files with 17 additions and 7 deletions

View File

@@ -693,6 +693,14 @@ registerCommand({
onClick: () => getElectron().send('window-action', 'minimize'),
});
registerCommand({
id: 'app.maximize',
category: 'Application',
name: 'Maximize',
testEnabled: () => getElectron() != null,
onClick: () => getElectron().send('window-action', 'maximize'),
});
registerCommand({
id: 'app.toggleFullScreen',
category: 'Application',