chore(core): removed obsolete TODO (#7337)

Cleaned up some TODOs that no longer need to be done
This commit is contained in:
JimmFly
2024-06-27 06:30:28 +00:00
parent e892d55134
commit 4af6223dc3
11 changed files with 6 additions and 16 deletions
@@ -1,3 +1,4 @@
import { notify } from '@affine/component';
import { updateReadyAtom } from '@affine/core/hooks/use-app-updater';
import { apis } from '@affine/electron-api';
import type { useI18n } from '@affine/i18n';
@@ -24,7 +25,10 @@ export function registerAffineUpdatesCommands({
preconditionStrategy: () => !!store.get(updateReadyAtom),
run() {
apis?.updater.quitAndInstall().catch(err => {
// TODO(@JimmFly): add error toast here
notify.error({
title: 'Failed to restart to upgrade',
message: 'Please restart the app manually to upgrade.',
});
console.error(err);
});
},