mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-13 21:05:19 +00:00
feat: create workspace from loading existing exported file (#2122)
Co-authored-by: Himself65 <himself65@outlook.com>
This commit is contained in:
@@ -18,7 +18,7 @@ export const updateAvailableAtom = atomWithObservable<boolean>(() => {
|
||||
if (typeof window !== 'undefined') {
|
||||
const isMacosDesktop = environment.isDesktop && environment.isMacOs;
|
||||
if (isMacosDesktop) {
|
||||
const dispose = window.apis?.onClientUpdateAvailable(() => {
|
||||
const dispose = window.events?.updater.onClientUpdateReady(() => {
|
||||
subscriber.next(true);
|
||||
});
|
||||
return () => {
|
||||
|
||||
@@ -124,7 +124,7 @@ export const AppSidebar = forwardRef<HTMLElement, AppSidebarProps>(
|
||||
{clientUpdateAvailable && (
|
||||
<Button
|
||||
onClick={() => {
|
||||
window.apis?.onClientUpdateInstall();
|
||||
window.apis?.updater.updateClient();
|
||||
}}
|
||||
noBorder
|
||||
className={updaterButtonStyle}
|
||||
|
||||
Reference in New Issue
Block a user