focused connection widget

This commit is contained in:
Jan Prochazka
2024-11-28 18:17:22 +01:00
parent 2ca17e826c
commit 3ac24436ba
5 changed files with 110 additions and 91 deletions

View File

@@ -942,6 +942,14 @@ registerCommand({
onClick: () => showModal(UploadErrorModal),
});
registerCommand({
id: 'app.unsetCurrentDatabase',
category: 'Application',
name: 'Unset current database',
testEnabled: () => getCurrentDatabase() != null,
onClick: () => currentDatabase.set(null),
});
const electron = getElectron();
if (electron) {
electron.addEventListener('run-command', (e, commandId) => runCommand(commandId));