checking for update

This commit is contained in:
SPRINX0\prochazka
2024-09-09 15:44:34 +02:00
parent 3303fd1ee9
commit 703a4bdb57
7 changed files with 125 additions and 1 deletions

View File

@@ -3,6 +3,7 @@ import {
currentTheme,
emptyConnectionGroupNames,
extensions,
getAppUpdaterActive,
getExtensions,
getVisibleToolbar,
visibleToolbar,
@@ -585,6 +586,17 @@ registerCommand({
onClick: () => disconnectServerConnection(getCurrentConfig()?.singleConnection?._id),
});
registerCommand({
id: 'file.checkForUpdates',
category: 'App',
name: 'Check for updates',
// testEnabled: () => true,
testEnabled: () => getAppUpdaterActive(),
onClick: () => getElectron().send('check-for-updates'),
});
export function registerFileCommands({
idPrefix,
category,