mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-07-25 14:28:51 +08:00
chore(core): removed obsolete TODO (#7337)
Cleaned up some TODOs that no longer need to be done
This commit is contained in:
@@ -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);
|
||||
});
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user