mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-13 04:48:53 +00:00
@@ -60,8 +60,9 @@ export function useRegisterWorkspaceCommands() {
|
||||
const appSidebarService = useService(AppSidebarService);
|
||||
const i18n = useService(I18nService).i18n;
|
||||
|
||||
const quitAndInstall =
|
||||
useServiceOptional(DesktopApiService)?.handler.updater.quitAndInstall;
|
||||
const desktopApiService = useServiceOptional(DesktopApiService);
|
||||
|
||||
const quitAndInstall = desktopApiService?.handler.updater.quitAndInstall;
|
||||
|
||||
useEffect(() => {
|
||||
const unsub = registerCMDKCommand(cmdkQuickSearchService);
|
||||
@@ -124,7 +125,6 @@ export function useRegisterWorkspaceCommands() {
|
||||
};
|
||||
}, [editorSettingService, store, t, theme]);
|
||||
|
||||
// register AffineLanguageCommands
|
||||
useEffect(() => {
|
||||
const unsub = registerAffineLanguageCommands({
|
||||
i18n,
|
||||
|
||||
Reference in New Issue
Block a user