SYNC: export connections modal screenshot

This commit is contained in:
SPRINX0\prochazka
2025-04-30 10:48:56 +02:00
committed by Diflow
parent 5d953da267
commit 6b751eb715
3 changed files with 10 additions and 2 deletions

View File

@@ -535,7 +535,7 @@ registerCommand({
id: 'app.exportConnections',
category: 'Settings',
name: 'Export connections',
testEnabled: () => getElectron() != null,
testEnabled: () => !getCurrentConfig()?.runAsPortal && !getCurrentConfig()?.storageDatabase,
onClick: () => {
showModal(ExportImportConnectionsModal, {
mode: 'export',
@@ -547,7 +547,7 @@ registerCommand({
id: 'app.importConnections',
category: 'Settings',
name: 'Import connections',
testEnabled: () => getElectron() != null,
testEnabled: () => !getCurrentConfig()?.runAsPortal && !getCurrentConfig()?.storageDatabase,
onClick: async () => {
const files = await electron.showOpenDialog({
properties: ['showHiddenFiles', 'openFile'],