fix: should use fullscreen to control where to place macos window controls (#6351)

This commit is contained in:
pengx17
2024-03-28 03:40:46 +00:00
parent 4e7652f108
commit e53744b740
7 changed files with 53 additions and 16 deletions
@@ -11,4 +11,10 @@ export const uiEvents = {
sub.unsubscribe();
};
},
onFullScreen: (fn: (fullScreen: boolean) => void) => {
const sub = uiSubjects.onFullScreen$.subscribe(fn);
return () => {
sub.unsubscribe();
};
},
} satisfies Record<string, MainEventRegister>;